You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Prieß (Jira)" <ji...@apache.org> on 2024/01/10 13:46:00 UTC
[jira] [Commented] (AMQ-9298) Fix console regression when listing consumers on a queue
[ https://issues.apache.org/jira/browse/AMQ-9298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805151#comment-17805151 ]
Michael Prieß commented on AMQ-9298:
------------------------------------
Seems like this bug was already fixed with [https://github.com/apache/activemq/commit/4cedd80774a91ac14f50ad20d4e32b49bc9f4563] but not backported to 5.16.x.
I can reproduce the issue with 5.16.17.
> Fix console regression when listing consumers on a queue
> --------------------------------------------------------
>
> Key: AMQ-9298
> URL: https://issues.apache.org/jira/browse/AMQ-9298
> Project: ActiveMQ
> Issue Type: Bug
> Reporter: Matt Pavlovich
> Assignee: Matt Pavlovich
> Priority: Major
>
> in org.apache.activemq.web.BrokerFacadeSupport
> @Override
> @SuppressWarnings("unchecked")
> public Collection<SubscriptionViewMBean> getQueueConsumers(String queueName) throws Exception {
> String brokerName = getBrokerName();
> queueName = StringUtils.replace(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);
> }
> these quotes are redundant,when i delete these quotes,and replace this class file to activemq-web-5.16.6.jar and restart active mq . the the consumer list appears.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)