mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4237 - new jmx and web console - consumers on connection
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1430283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3626e19bc
commit
f4f033c91a
|
@ -194,8 +194,8 @@ public abstract class BrokerFacadeSupport implements BrokerFacade {
|
||||||
public Collection<SubscriptionViewMBean> getConsumersOnConnection(String connectionName) throws Exception {
|
public Collection<SubscriptionViewMBean> getConsumersOnConnection(String connectionName) throws Exception {
|
||||||
connectionName = StringUtils.replace(connectionName, ":", "_");
|
connectionName = StringUtils.replace(connectionName, ":", "_");
|
||||||
String brokerName = getBrokerName();
|
String brokerName = getBrokerName();
|
||||||
ObjectName query = new ObjectName("org.apache.activemq:BrokerName=" + brokerName
|
ObjectName query = new ObjectName("org.apache.activemq:type=Broker,brokerName=" + brokerName
|
||||||
+ ",Type=Subscription,clientId=" + connectionName + ",*");
|
+ ",*,endpoint=Consumer,clientId=" + connectionName);
|
||||||
Set<ObjectName> queryResult = queryNames(query, null);
|
Set<ObjectName> queryResult = queryNames(query, null);
|
||||||
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]), SubscriptionViewMBean.class);
|
return getManagedObjects(queryResult.toArray(new ObjectName[queryResult.size()]), SubscriptionViewMBean.class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue