Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4393

Web console do not show connections info

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 5.8.0
    • 5.9.0
    • JMX
    • None
    • Patch Available

    Description

      The url:http://localhost:8161/admin/connections.jsp
      ActiveMQ5.5.0, this page will show then connections info.
      ActiveMQ5.8.0, this page will show nothing.

      Because the objectname of MBean have changed.
      5.5.0:
      org.apache.activemq:BrokerName=localhost,Type=Connector,ConnectorName=openwire
      5.5.8:
      org.apache.activemq:type=Broker,brokerName=localhost,connector=clientConnectors,connectorName=openwire

      So, to fix this, org.apache.activemq.web.BrokerFacadeSupport:

          public Collection<String> getConnections(String connectorName) throws Exception { 
              String brokerName = getBrokerName(); 
      //        ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" + brokerName 
      //                + ",connector=clientConnectors,connectorName=" + connectorName + ",connectionName=*"); 
      
            ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" + brokerName 
            + ",connector=clientConnectors,connectorName=" + connectorName + ",connectionViewType=clientId" + ",connectionName=*");   
          ... 
      } 
      
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tabish Timothy A. Bish
            hengyunabc Hengyunabc Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment