You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2013/03/20 17:11:18 UTC

[jira] [Updated] (AMQ-4393) Web console do not show connections info

     [ https://issues.apache.org/jira/browse/AMQ-4393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQ-4393:
------------------------------

    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: 

{code}

    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=*");   
    ... 
} 

{code}

  was:
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=*");   
    ... 
} 

    
> Web console do not show connections info
> ----------------------------------------
>
>                 Key: AMQ-4393
>                 URL: https://issues.apache.org/jira/browse/AMQ-4393
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.8.0
>            Reporter: hengyunabc
>            Priority: Trivial
>
> 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: 
> {code}
>     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=*");   
>     ... 
> } 
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira