Re: Reconnect a closed durable subscriber

2010-07-01 Thread Daniele Dellafiore
ok, I got it. The producer must be set in PERSISTENT delivery mode to make this happen. Thanks for help. On Thu, Jul 1, 2010 at 11:38 AM, Daniele Dellafiore wrote: > I tried this way with no success. > I create a new subscriber s2b after having called s2a.close(), while > s1 is always active. >

Re: Reconnect a closed durable subscriber

2010-07-01 Thread Daniele Dellafiore
I tried this way with no success. I create a new subscriber s2b after having called s2a.close(), while s1 is always active. s2b = session.createDurableSubscriber(topic, consumerName); where session is the same instance I used the first time, so is topic and consumerName after this line, i push n

Re: Reconnect a closed durable subscriber

2010-06-30 Thread Stan Lewis
You have to connect to the broker using the same client ID and then create a subscription using the same name as you used previously, that will get you connected to the existing subscription. On Wed, Jun 30, 2010 at 8:24 AM, Daniele Dellafiore wrote: > Hi everyone. I just started using ActiveMQ a

Reconnect a closed durable subscriber

2010-06-30 Thread Daniele Dellafiore
Hi everyone. I just started using ActiveMQ and this is my first message to the list. I have searched for answer for my question on the archive without success. Quick version: I simply can't find a way to reconnect a durable subscriber after calling MessageConsumer.close() method to disconnect. Lo