I'm not sure that what you are attempting to do is supported by ActiveMQ.
When you pass in a selector like that, it is essentially a script that is
run at the broker.  NMS does not process the selector statement.  You'll
need to consult the JMS spec and the ActiveMQ implementation to see if
bitwise logic is supported.  My guess is that it is not.  You'll most likely
need to re-implement your message objects so that they can use normal
boolean logic instead of bitwise logic.

On Tue, Sep 8, 2009 at 11:20 AM, gtsafas <gtsa...@rblt.com> 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-tp25351496p25351496.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Reply via email to