Sonic JMS Message Selector

Posted by dwelford on 22-Jul-2008 10:27

Hi,

Anyone know where I can find samples of using the Topic Message Selector?

I would like to add the ability for the topic to filter out data not required.

Thanks

All Replies

Posted by jtownsen on 04-Aug-2008 09:44

There's a sample under the SonicMQ installation directory (...\samples\TopicPubSub\SelectorChat)

Posted by Admin on 08-Aug-2008 02:32

There is a quite verbose explanation of the message selector syntax in the following file: /MQversion/sonicmq_docs/sonicmq_api/javax/jms/Message.html

Posted by dmillman on 19-Aug-2008 08:43

Depending on the granularity of your data/topics you can use various techniques to filter data, including MultiTopic and topic wild carding (using # and *). If you really do need to use selectors then make sure that they are deployed on the broker and not in the client if possible. By employing the selector on the broker you minimize the amount of network traffic, especially if the number of messages to filter out is high.

David

This thread is closed