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 su

Re: Unsubscribing DurableSubscribers

2016-09-16 Thread Hassen Bennour
Sorry for the poor copy paste. This the good one. Here is the problem I think and why close method not resolve your error : receiver1.receiveMessage(u2); receiver1.receiveMessage(u3); Calling receiveMessage many times on the same object as you designed will overwrite your consumer reference and t

Re: Unsubscribing DurableSubscribers

2016-09-16 Thread Hassen Bennour
Unsubscribe durable subscribers with ActiveMQ up vote 0 down vote favorite 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 subscrib

Re: Unsubscribing DurableSubscribers

2016-09-16 Thread Lovegiver
​​ Good evening Tim, thanx a lot for responding me. The response is YES. I've got 3 topics living and each has got 2 subscribers (it's my test case). Topics have been created. DurableSubscribers have registered. In case they disconnect, a listener is ON for each topic. Each subscriber has got

Re: Unsubscribing DurableSubscribers

2016-09-16 Thread Tim Bain
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, "Lovegiver" wrote: > Hello there,I'm trying to *UNSUBSCRIBE durable subscribers from TOPICS*.My > app is a kind of social ne