-
Bug
-
Resolution: Done
-
Major
-
7.0 Beta-2
-
Weeks 26, 27 (June 18 - 30), Weeks 28, 29 (July 3 - 14), Weeks 30, 31 (July 17-28)
Could not find any doc on using ha=true on the connection url on A-MQ 7 clients. Also the exact behaviour of multiple host:port entries in the connection url was not clear to me.
I got the following info from Justin Bertram (paraphrased):
For tcp://host:port?ha=true&reconnectAttempts=-1 or (tcp://host1:port,tcp://host2:port)?ha=true&reconnectAttempts=-1 Using ha=true does allow the client to track topology changes. In every case the host:port entry (possibly entries) are just for the "initial" connection. The host:port entries have nothing to do with connection fail-over between a live and a backup server. Fail-over will only happen if ha=true and reconnectAttempts > 0 and the connection target is live server properly configured with a backup. Note: reconnectAttempts is for reconnecting back to a live (or its backup) to which the client was previously connected.