selectors work on any message property. have a peek at the tests: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java?view=markup
and http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/JmsTopicSelectorTest.java?view=markup to see examples of the the syntax. selectors work in the same manner for browsers. The only thing to note is that selectors are run in memory, so you may need to configure a large maxPageSize via a destination policy entry if you have sparse selectors as the maxPageSize determines how many messages are retained in memory pending dispatch, An alternative to selectors is to use virtual destinations such that selected messages are redirected to their own destination. On 10 April 2012 11:13, sreekar <trinadhnal...@gmail.com> wrote: > Hi Guys, > > I need to get the messages from one ActiveMQ Queue. > Going throught the documentation, found that Message_Selectors might be > helpful. > > But i did not see any doc explaining the mechanism of filtering the > messages. > > My doubt is how do i query for a specific message with some correlationID > (say :1789) > > consumer = session->createConsumer (MY_QUEUE, "1789"); > or > consumer = session->createConsumer (MY_QUEUE, "correlationId=1789"); > > How does the filtering happen ? > > Will it (message-selector) search only in the content (i.e body of the > message) or will it also search in the properties set by the user (set using > setStringProperty(), setIntProperty()...etc) ? > > > Are there any examples showing the usage of ActiveMQQueueBrowser ? > > Any help would be appreciable. > > Thanks & Regards, > Sreekar > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/How-does-the-Active-MQ-perform-search-in-the-messages-for-the-given-MESSAGE-SELECTOR-tp4545137p4545137.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com