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: how do I remove a MessengerListener?
Date Thu, 07 Sep 2006 08:39:16 GMT
On 9/7/06, Jonas Lim <jlim@exist.com> wrote:
> Hi,
>
> Set the value of  the setMessageListener of your MessageConsumer to null.
> This should remove the message listener for the message consumer.

though that will keep the consumer active - so if what you really
wanna do is stop consuming, you could call consumer.close()


-- 

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

Mime
View raw message