title: Message Id based receive ActiveMQ
body: <p>I am trying to use JMS Message Selector with ActiveMQ. I read the documentation on Apache's site. But I am not able to get where to specify the selection condition while creating the Consumer.</p>
  
  <p>e.g.:</p>
  
  <pre><code>MessageConsumer consumer=session.createConsumer(dest);
  </code></pre>
  
  <p>To set selection on this consumer, what should I code? It will be great if anyone can provide a snippet or link to a tutorial explaining this.</p>