activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Getting a list of active topics from a JMS client
Date Wed, 10 May 2006 16:51:44 GMT
On 5/10/06, chris24 <ilkt24@gmail.com> wrote:
>
> Hello,
>
>    I have a Java client connecting directly to the broker and am wondering
> how I can get a list of topics currently on the broker? I assume the
> solution will involve jndi (would this get dynamic topics?). Thanks,

The easiest way is to use JMX

http://activemq.org/JMX

though you can also get all of the active destinations from the broker
http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/Broker.html#getDestinations()
http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/region/Region.html#getDestinationMap()
--

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message