Hi,
Thanks for the reply. I still have an issue with threads.

I delete all the related data on disconnect ie., connection,
topics,destination, sessions that are created and then reestablish all of it
in the reconnect function.

I don't see a problem in reconnect, send and receive messages, But its just
adding two set of threads on reconnect.

I am not using failover  URI. I call the initialize library once. and i have
not called shutdown in my test.
I read on the forum that "If you don't use failover then you need to catch
exceptions from the 
client calls as well as register an onException handler to know that the 
client connection has failed and then tear down and rebuild the CMS
objects."

I am catching exceptions from CMS objects, which enables me to detect
connection lost and call disconnect.
But wat is the onException handler that i need to register.
Could you please help me get rid of these additional threads.





--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to