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
There's a sample under the SonicMQ installation directory (...\samples\TopicPubSub\SelectorChat)
There is a quite verbose explanation of the message selector syntax in the following file: /MQversion/sonicmq_docs/sonicmq_api/javax/jms/Message.html
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