activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim_Cross <>
Subject Message Selector Not Filtering Messages
Date Tue, 05 Jun 2007 09:09:31 GMT


I'm using ActiveMQ with a Java producer and a C# (NMS) consumer.
Everything seems to be working, except my message selectors, which don't
filter out any messages.
For example, if I use the following in my producer:

TextMessage testMessage = session.createTextMessage();
testMessage.setStringProperty("SubPath", "data/test");

And this in the consumer:

IMessageConsumer consumer = session.CreateConsumer(dest, "SubPath = 'x'");

I would not expect any messages to flow through, as they should be filtered
by SubPath. However, my consumer receives all of the messages.
Can anyone tell me what I'm doing wrong, or whether there's a way I can turn
up the logging to see why the selector isn't filtering out these messages?

As an aside, am I right in thinking you can't create non-temporary topics
using NMS?



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

View raw message