activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Changing Message Selector
Date Mon, 07 Aug 2006 10:59:43 GMT
On 8/7/06, Venkatg <venkatabbu@yahoo.com> wrote:
>
> Hi,
>
>  In my application I need to change selector for a topic based on the some
> conidition. So seletor will keep changing. How to change the selector
> dynamically for a consumer.
> I don't see any API like "setMessageSelector" in Consumer class.

The JMS API doesn't not allow you to mutate the selector while its
created - you have to close & create new consumers.

Though ActiveMQ does allow you to modify the selector via JMX on the broker

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message