I tried a little experiment to understand ActiveMQ's behavior when the network is disrupted. It appears that there is some sort of connection monitoring going on between the client and the ActiveMQ broker (either at the broker level or at the socket level). ActiveMQ keeps retrying the message until it gets an acknowledgement from the subscriber. However during these retries, if the connection times out then the client's ExceptionListener simply receives a JMSException (Connection reset). For shorter network disruptions, even non-durable messages seem to go through pretty reliably. Does this conclusion make sense?
Thanks. Naresh -- View this message in context: http://www.nabble.com/How-to-ensure-reliability-of-publish-subscribe-against-occassional-network-hiccup--tf4068985s2354.html#a11621573 Sent from the ActiveMQ - User mailing list archive at Nabble.com.