activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmittal <nmit...@rblt.com>
Subject Re: NMS: How to specify Bitwize operations in selectors
Date Wed, 09 Sep 2009 12:32:43 GMT

try replacing the & with AND


gtsafas wrote:
> 
> 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-tp25351496p25364007.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message