You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by StanleyH <st...@gmail.com> on 2006/08/25 18:56:50 UTC

Message selectors

I have a string property typeOfMessage.
I would like to filter messages typeOfMessage="NewMessageNotify"
how do I create a consumer from a session with the correct selector string.

thanks
-- 
View this message in context: http://www.nabble.com/Message-selectors-tf2165860.html#a5987308
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Message selectors

Posted by James Strachan <ja...@gmail.com>.
On 8/25/06, StanleyH <st...@gmail.com> wrote:
>
> I have a string property typeOfMessage.
> I would like to filter messages typeOfMessage="NewMessageNotify"
> how do I create a consumer from a session with the correct selector string.

session.createConsumer(queue, "typeOfMessage = 'NewMessageNotify' ");


-- 

James
-------
http://radio.weblogs.com/0112098/