activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtsafas <>
Subject NMS: How to specify Bitwize operations in selectors
Date Tue, 08 Sep 2009 18:20:02 GMT

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


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


Thanks in advance.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message