Uploaded image for project: 'AMQ Documentation'
  1. AMQ Documentation
  2. AMQDOC-2259

Customer Feedback: [A-MQ7, ha=true] relationship between ha=true and multiple host:port entries in connection url

XMLWordPrintable

    • 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.
      
      

              rhn-support-pfestoso_jira Phil Festoso (Inactive)
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: