简体   繁体   English

JMS主题获取clientID的

[英]JMS topic get clientID's

Can i get ClientID's of all jms topic subscribers? 我可以获取所有JMS主题订阅者的ClientID吗? I use Jboss AS 6 (HornetQ). 我使用Jboss AS 6(HornetQ)。

Off course, i can send query to all of them and read replies, but i'm looking for more elegant solution. 当然,我可以向所有人发送查询并阅读回复,但我正在寻找更优雅的解决方案。

With HornetQ you can list all the core-queues using JMX-management. 使用HornetQ,您可以使用JMX管理列出所有核心队列。

You can just list the queues under org.hornetq.core (on the JMX view). 您可以仅在org.hornetq.core下列出队列(在JMX视图上)。 The client-id will just be part of the name. 客户ID只是名称的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM