activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: How to remove a MessageListener
Date Wed, 14 Sep 2016 12:29:10 GMT
Calling TopicSubscriber.setMessageListener(null) will unset the listener;
is that what you're looking for?

Also, you say that "Before they may do so, I need to remove the
MessageListener;" why is this necessary prior to unsubscribing?

Tim

On Sep 13, 2016 12:34 PM, "Lovegiver" <frederic.courcier@gmail.com> wrote:

> Hello,
>
> I have created *DurableSubscribers* for different *topics*.
> A *MessageListener *has been implemented.
>
> Some of these subscribers would like to *unsubscribe *one or more topics.
>
> Before they may do so, I need to *remove the MessageListener*.
>
> How can I do that ?
>
> Thanx for your help.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/How-to-remove-a-MessageListener-tp4716492.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message