activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: How does the Active MQ perform search in the messages for the given MESSAGE_SELECTOR?
Date Tue, 10 Apr 2012 10:47:19 GMT
selectors work on any message property.

have a peek at the tests:


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 <> 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:
> Sent from the ActiveMQ - User mailing list archive at


View raw message