activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <>
Subject Re: How to delete all queues and topics programmatically without using any JMX?
Date Wed, 19 Dec 2012 00:06:15 GMT
Not sure if there's a good way to do it using activemq-admin (although i
think that script uses JMX under the covers to do some things).. but if
you're trying to do it within code, then you'll need to get hold of the
"region broker" (BrokerService.getRegionBroker) and on that class you can
get a list of the destinations and there's a remove destination method. It
wasn't intended for user code, so there might need to be some hacking to
get it working right.

On Tue, Dec 18, 2012 at 4:43 PM, aybeeryu <> wrote:

> Hi,
> I was looking for a way to delete all queues/topics or specific
> queues/topics(given the queue/topic names as input) without using any of
> jmx. I did a bit of research and came to an understanding that the only way
> to remove queues/topics was with the help of BrokerViewMBean of JMX. But is
> there a way to do this without using any JMX components?
> Thanks in advance
> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

*Christian Posta*
twitter: @christianposta

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