activemq-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1430283&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4237 - new jmx and web console - consumers on connection

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=1430283&r1=1430282&r2=1430283&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 13:51:56 2013
@@ -194,8 +194,8 @@ public abstract class BrokerFacadeSuppor
     public Collection<SubscriptionViewMBean> getConsumersOnConnection(String connectionName)
throws Exception {
         connectionName = StringUtils.replace(connectionName, ":", "_");
         String brokerName = getBrokerName();
-        ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName
-                + ",Type=Subscription,clientId=" + connectionName + ",*");
+        ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" +
brokerName
+                + ",*,endpoint=Consumer,clientId=" + connectionName);
         Set<ObjectName> queryResult = queryNames(query, null);
         return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
SubscriptionViewMBean.class);
     }



Mime
View raw message