title: Spring integration gateway methods with multiple parameters
body: <p>I have a question regarding Gateways and multiple parameters:</p>
  
  <p><strong>The context:</strong>
  I would like a Gateway to have two methods:</p>
  
  <pre><code>search(Query query, FetchSpec fetchSpec);
  search(int queryId, FetchSpec fetchSpec);
  </code></pre>
  
  <p>The first method should route directly to a service executing the query, while the second should route to another service to have the queryId resolved into a Query, and then on to the first Service to have the Query executed.</p>
  
  <p><strong>The Question</strong>: What would be best practice for having TWO (or more) parameters as arguments for a Gateway method? It seems that the entire pattern is targeted at having only one parameter corresponding the one Message. Should I use the message headers for adding extra parameters?</p>