activemq-users mailing list archives

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

Hi,

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("URI",
"http://localhost/slide/files/data/test/text.txt");
testMessage.setStringProperty("SubPath", "data/test");
testMessage.setText(content);
producer.send(testMessage);

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?

Thanks,

Jim

-- 
View this message in context: http://www.nabble.com/Message-Selector-Not-Filtering-Messages-tf3870553s2354.html#a10965883
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message