activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1430323 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java
Date Tue, 08 Jan 2013 15:38:46 GMT
Author: dejanb
Date: Tue Jan  8 15:38:46 2013
New Revision: 1430323

URL: http://svn.apache.org/viewvc?rev=1430323&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4237 - new jmx and web console - network connectors
and bridges

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java?rev=1430323&r1=1430322&r2=1430323&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java
Tue Jan  8 15:38:46 2013
@@ -166,7 +166,7 @@ public abstract class BrokerFacadeSuppor
     @SuppressWarnings("unchecked")
     public Collection<NetworkConnectorViewMBean> getNetworkConnectors() throws Exception
{
         String brokerName = getBrokerName();
-        ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName
+ ",Type=NetworkConnector,*");
+        ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" +
brokerName + ",connector=networkConnectors,networkConnectorName=*");
         Set<ObjectName> queryResult = queryNames(query, null);
         return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
                 NetworkConnectorViewMBean.class);
@@ -174,7 +174,7 @@ public abstract class BrokerFacadeSuppor
 
     public Collection<NetworkBridgeViewMBean> getNetworkBridges() throws Exception
{
         String brokerName = getBrokerName();
-        ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName
+ ",Type=NetworkBridge,*");
+        ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" +
brokerName + ",connector=networkConnectors,networkConnectorName=*,networkBridge=*");
         Set<ObjectName> queryResult = queryNames(query, null);
         return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
                 NetworkBridgeViewMBean.class);



Mime
View raw message