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

The connector's jmx attribute UpdateClusterClients is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.3
    • JBoss A-MQ 6.2.1
    • jmx
    • None
    • Hide

      1) Install A-MQ 6.2.1
      2) Start instance using bin/amq
      3) Go to JMX setting (either from JConsole, JVisualVM, or A-MQ Web console)
      4) Go to JMX mbeans clientConnectors/openwire, make note of properties "updateClusterClients" and "updateClusterClientsOnRemove" (both should be false)
      5) Stop instance, open activemq.xml and edit transport connectors to look exactly like this (the filter setting is not important, added to confirm settings only)

      <transportConnectors>
      <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"
      updateClusterClients="true"
      updateClusterClientsOnRemove="true"
      updateClusterFilter="broker*"/>
      </transportConnectors>

      6) Restart A-MQ
      7) Go to JMX mbeans clientConnectors/openwire, now "Update cluster clients" and "Update cluster clients on remove" should both be "true" (this is expected)
      8) Stop instance, open active.xml, edit change transport connector and set updateClusterClientsOnRemove="false". On startup, we expect this value to be false and updateClusterClients to be "true"
      9) Restart A-MQ, go to JMX mbeans clientConnectors/openwire, now you should see the problem; updateClusterClientsOnRemove is FALSE (that's expected), but "updateClusterClients" is also FALSE, that's wrong; the property is not consistent with activemq.xml; it should be "true".

      Show
      1) Install A-MQ 6.2.1 2) Start instance using bin/amq 3) Go to JMX setting (either from JConsole, JVisualVM, or A-MQ Web console) 4) Go to JMX mbeans clientConnectors/openwire, make note of properties "updateClusterClients" and "updateClusterClientsOnRemove" (both should be false) 5) Stop instance, open activemq.xml and edit transport connectors to look exactly like this (the filter setting is not important, added to confirm settings only) <transportConnectors> <transportConnector name="openwire" uri="tcp://0.0.0.0:61616" updateClusterClients="true" updateClusterClientsOnRemove="true" updateClusterFilter="broker*"/> </transportConnectors> 6) Restart A-MQ 7) Go to JMX mbeans clientConnectors/openwire, now "Update cluster clients" and "Update cluster clients on remove" should both be "true" (this is expected) 8) Stop instance, open active.xml, edit change transport connector and set updateClusterClientsOnRemove="false". On startup, we expect this value to be false and updateClusterClients to be "true" 9) Restart A-MQ, go to JMX mbeans clientConnectors/openwire, now you should see the problem; updateClusterClientsOnRemove is FALSE (that's expected), but "updateClusterClients" is also FALSE, that's wrong; the property is not consistent with activemq.xml; it should be "true".

      The connector's jmx attribute UpdateClusterClients is not correct, the reason is that the code is not correct in the file ConnectorView.java, attached a patch.

      public boolean isUpdateClusterClients() {return this.connector.isUpdateClusterClientsOnRemove();}
      

              gtully@redhat.com Gary Tully
              rhn-support-xiwu Xiaohui Wu
              Otavio Piske Otavio Piske
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: