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.
e.g.:
MessageConsumer consumer=session.createConsumer(dest);
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.
The
javax.jms.SessionAPI makes this quite plain:It’s just one line below the
session.createConsumer(dest)variant. Perhaps you grew weary too soon?