Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2269

AMQ ignore the value of maxReconnectAttempts in the network connector URI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • container-image
    • None

      When we set a value for 'maxReconnectAttempts' using the env var 'AMQ_MESH_QUERY_INTERVAL', this has no effect:

      oc set env dc/broker-amq 'AMQ_MESH_QUERY_INTERVAL=30\&maxReconnectAttempts=0'
      oc set env dc/broker-drainer 'AMQ_MESH_QUERY_INTERVAL=30&maxReconnectAttempts=0'
      

      It seems, there is no setter for that property, so the value from the uri is being ignored.

      https://github.com/jboss-openshift/openshift-ping/blob/master/activemq/src/main/java/org/openshift/activemq/discoveryagent/OpenShiftDiscoveryAgent.java#L64

            gaohoward Howard Gao
            rhn-support-aboucham Abel Bouchama
            Mikhail Krutov Mikhail Krutov
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: