Hello Tim Yes that is exactly what I was looking for. Hard to know it was so simple...
Well you're right. Reading error messages let me think it was necessary to give listener up prior to unsubscribe, but I found a post explaining it was possible to unsuscribe after doing a "consumer.close()". It's working fine. ActiveMQ is a great product but I've got so much to learn and understand ! Thanx for the time you gave me. Hope I'll help you one day in return. ++ Frédéric COURCIER citizen-web <http://blog.citizen-web.com/> <http://goog_1602287852> 2016-09-14 14:25 GMT+02:00 Tim Bain [via ActiveMQ] < ml-node+s2283324n4716516...@n4.nabble.com>: > 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" <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4716516&i=0>> 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. > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://activemq.2283324.n4.nabble.com/How-to-remove-a-MessageListener- > tp4716492p4716516.html > To unsubscribe from How to remove a MessageListener, click here > <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4716492&code=ZnJlZGVyaWMuY291cmNpZXJAZ21haWwuY29tfDQ3MTY0OTJ8MjAyNTY3MjE0Nw==> > . > NAML > <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-remove-a-MessageListener-tp4716492p4716525.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.