From 351a339b0d2431b8064f38d82dc4bb232c2df058 Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Tue, 8 Jan 2013 15:38:46 +0000 Subject: [PATCH] https://issues.apache.org/jira/browse/AMQ-4237 - new jmx and web console - network connectors and bridges git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1430323 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/web/BrokerFacadeSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java b/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java index fd15ea42a4..8a03a948d3 100644 --- a/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java +++ b/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java @@ -166,7 +166,7 @@ public abstract class BrokerFacadeSupport implements BrokerFacade { @SuppressWarnings("unchecked") public Collection 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 queryResult = queryNames(query, null); return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]), NetworkConnectorViewMBean.class); @@ -174,7 +174,7 @@ public abstract class BrokerFacadeSupport implements BrokerFacade { public Collection 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 queryResult = queryNames(query, null); return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]), NetworkBridgeViewMBean.class);