title: Spring integration dynamic message selector
body: <p>I have an application with two queues, the first queue has control messages and the other has data messages. Based on the JMSCorrelationID of the message from the control queue i need to read only messages with that JMSCorrelationID from the data queue.</p>
  
  <p>I am able to selectively read messages from the data queue using a selector defined as below.</p>
  
  <pre><code>&lt;int-jms:message-driven-channel-adapter id="messageDrivenInboundAdapter"
      channel="inboundChannel" destination-name="inboundMQ"
      selector="JMSCorrelationID = 'JMSCORELIS1234'"
      connection-factory="connectionFactory" extract-payload="false"/&gt;
  </code></pre>
  
  <p>I need to dynamically update value for the JMSCorrelationID for the selector based on messages received on a different channel. </p>
  
  <p>Is it possible to do that? Is there a different way to implement this solution in spring integration?</p>