activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <bur...@spinn3r.com>
Subject Is it possible to get a list of queues on a remote broker?
Date Sat, 14 Jun 2014 00:15:04 GMT
I'm trying to figure out how to get a list of existing queues on a remote
broker.

It looks like I can listen to queues as they are created/destroyed by
adding an advisory message (which I don't yet have working) but I need to
get all EXISTING queues on startup.

It looks like I can do this with getDestinationMap:

http://activemq.apache.org/maven/apidocs/org/apache/activemq/broker/region/Region.html#getDestinationMap()

But that seems like it can only be called from an embedded and in-process
broker.

I mean... I'm willing to go that route but it seems to make more sense to
just have the normal init/daemon setup for activemq and then have a remote
process connect to it like a normal JMS consumer.

This documentation seems to imply that it's possible:

http://activemq.apache.org/how-can-i-see-what-destinations-are-used.html

But that's by using a Region object and that only seems possible if you're
in the same JVM as activemq.

-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
Skype: *burtonator*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>
War is peace. Freedom is slavery. Ignorance is strength. Corporations are
people.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message