I am trying to configure a consumer so it only receives messages that have
the 2nd bit in the ‘Status’ (user defined INT property) as 0. I came up with
the following code but I get this Exception…  

 

“An unhandled exception of type 'Apache.NMS.ActiveMQ.BrokerException'
occurred in Apache.NMS.ActiveMQ.dll

Additional information: javax.jms.JMSException : Couldn't create
TopicSubscription”

 

IMessageConsumer consumer = session.CreateConsumer(destination, "Status & 2
= 0");

 

Thanks in advance.


-- 
View this message in context: 
http://www.nabble.com/NMS%3A-How-to-specify-Bitwize-operations-in-selectors-tp25351496p25351496.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to