activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim_Cross <jimcross1...@googlemail.com>
Subject Re: Message Selector Not Filtering Messages
Date Wed, 06 Jun 2007 16:07:50 GMT

Finally found it in Jira...it's an unresolved issue:
http://issues.apache.org/activemq/browse/AMQNET-44

The work around, passing in the 3rd argument, works for me



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


Mime
View raw message