Re: Unsubscribing DurableSubscribers --> Solution

2016-09-19 Thread Lovegiver
Hello, I've got the solution and its explanation. Each connection needs /a unique ClientID/ : *connection.setClientID("clientID");* My mistake was to understand this unicity for a given client. When a client subscribes to a Topic, there is one connection for this Topic. So, for a given client

Re: Unsubscribing DurableSubscribers

2016-09-16 Thread Lovegiver
7 GMT+02:00 Tim Bain [via ActiveMQ] < ml-node+s2283324n471660...@n4.nabble.com>: > At the time you try to unsubscribe, is a client with that ID connected? > If > so, you need to close the existing consumer before unsubscribing. > > Tim > > On Sep 16, 2016 8:01 AM, "

Unsubscribing DurableSubscribers

2016-09-16 Thread Lovegiver
Hello there,I'm trying to *UNSUBSCRIBE durable subscribers from TOPICS*.My app is a kind of social network : each user is a topic for other users. So, each time a user is doing something, his friends are notified.Of course, a subscriber may unsubscribe from a topic, wanting to receive

Re: How to remove a MessageListener

2016-09-14 Thread Lovegiver
t; 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=4716516=0>> wrote: > > > Hello, > > > > I have created *DurableSubsc

How to remove a MessageListener

2016-09-13 Thread Lovegiver
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. --