title: Recipient list Router with selector expression
body: <p>I am getting the string messages in a Queue. I am consuming it and doing further processing using the below channel <code>processMessage</code>.</p>
  
  <p>Now I have a requirement where I need to send this messages to another queue based on the selector expression mentioned below.
  At the same time I need to make sure that the I am not missing any records in <code>processMessage</code> channel. Assuming that the below configuration is good to go? 
  or is there any better way to handle this situtaion:</p>
  
  <pre><code>  &lt;int:recipient-list-router id="router" input-channel="incomingMsg"&gt;
             &lt;int:recipient channel="publishToQueue" selector-expression="payload.contains('test trade') "/&gt;
             &lt;int:recipient channel="processMessage"/&gt;
    &lt;/int:recipient-list-router&gt;
  
      &lt;task:executor id="executor" pool-size="10" /&gt;
      &lt;int:publish-subscribe-channel id="publishToQueue" task-executor="executor"/&gt;
  </code></pre>
  
  <p>The logical explanation is :</p>
  
  <pre><code> IF payload.contains(test trade)
   THEN
      PublishToQueue
   END IF
   ProcessMessage
  </code></pre>