Re: How to detect a consumer's lost connection

2013-06-08 Thread Les Hazlewood
This is great. Thanks for the follow up Christian! -- Les Hazlewood | @lhazlewood CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282 On Tue, Jun 4, 2013 at 10:01 AM, Christian Posta wrote: > The failover transport is an excellent choice for failing over to > alternative/standby

Re: How to detect a consumer's lost connection

2013-06-04 Thread Christian Posta
The failover transport is an excellent choice for failing over to alternative/standby brokers, however, when used with just one connection URI, it will attempt to re-connect. You can set reconnection options (backoff, timeout, etc) on it. As for half-closed/uncleanly shutdown sockets, take a look

Re: How to detect a consumer's lost connection

2013-06-04 Thread Les Hazlewood
I don't think this will address Mark's question (but Mark, please correct if I'm wrong). If I understand him correctly, he wants the client to know when Broker X is no longer available, and at that time, kill its current connection and then keep trying to automatically re-connect to Broker X until