Hmm, I just tried this with an integer property as well, and still the
messages aren't filtered...


Jim_Cross wrote:
> 
> 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#a10977566
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to