mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4237 - first step at fixing web console to use new mbean name format
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1428899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6e3ca74ba
commit
603dc66b44
|
@ -184,8 +184,8 @@ public abstract class BrokerFacadeSupport implements BrokerFacade {
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue