I'm trying to build a reliable application using ActiveMQ 4.1.1 with
activemq-cpp-2.1. I followed the clean up procedure shown in the example
prog. It worked correctly if the server was present. However, problem raised
when i tried to simulate the case if the server fails and has been shut down
abnormally. After some investigation, i found that the api hanged after it
had joined the inner thread of IOTransport. It seems that it was waiting for
the thread's stop which had never happened.
     Is there anyone who knows a clean up procedure that works under both
situations, say, normal disconnection and abnormal one?
 
-- 
View this message in context: 
http://www.nabble.com/How-to-clean-up-client%27s-connection-when-server-fails--tf4856131s2354.html#a13895939
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to