activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Shutting down ActiveMQ kills topic subscriber client
Date Thu, 28 Jul 2011 17:02:46 GMT
not exactly sure what you are experiencing but maybe have a go at
reproducing with the examples
see: http://activemq.apache.org/examples.html

that may help clarify.

On 27 July 2011 22:49, oagady <oagady@gmail.com> wrote:
> I have a durable topic subscriber that I start the following way:
>
>                TopicConnection topicConn = connectionFactory.createTopicConnection();
>                topicConn.setClientID("durable");
>
>                TopicSession topicSession = topicConn.createTopicSession(false,
>                                   Session.AUTO_ACKNOWLEDGE);
>
>                Topic topic = topicSession.createTopic(topicName);
>
>
>                TopicSubscriber subscriber = topicSession.createDurableSubscriber(topic,
> "MySubsriber");
>
>                subscriber.setMessageListener(listener);
>                topicConn.start();
>
> If I shut down ActiveMQ broker when the client is running, this shuts down
> the client as well. I don't see any exception thrown.
>
> Am I missing something with configuration?
>
> Thanks
> Gali
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Shutting-down-ActiveMQ-kills-topic-subscriber-client-tp3699908p3699908.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://fusesource.com
http://blog.garytully.com

Mime
View raw message