activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1428899 - /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/BrokerFacadeSupport.java
Date Fri, 04 Jan 2013 14:45:35 GMT
Author: dejanb
Date: Fri Jan  4 14:45:35 2013
New Revision: 1428899

URL: http://svn.apache.org/viewvc?rev=1428899&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4237 - first step at fixing web console to use new
mbean name format

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=1428899&r1=1428898&r2=1428899&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
Fri Jan  4 14:45:35 2013
@@ -184,8 +184,8 @@ public abstract class BrokerFacadeSuppor
     public Collection<SubscriptionViewMBean> getQueueConsumers(String queueName) throws
Exception {
         String brokerName = getBrokerName();
         queueName = StringUtils.replace(queueName, "\"", "_");
-        ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName
-                + ",Type=Subscription,destinationType=Queue,destinationName=" + queueName
+ ",*");
+        ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" +
brokerName
+                + ",destinationType=Queue,destinationName=" + queueName + ",endpoint=Consumer,*");
         Set<ObjectName> queryResult = queryNames(query, null);
         return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]),
SubscriptionViewMBean.class);
     }



Mime
View raw message