JMS topic get clientID’s

Can i get ClientID’s of all jms topic subscribers? I use 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.

Answer

With HornetQ you can list all the core-queues using JMX-management.

You can just list the queues under org.hornetq.core (on the JMX view). The client-id will just be part of the name.

Leave a Reply

Your email address will not be published. Required fields are marked *