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 <abhishekro...@gmail.com> 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:
> http://activemq.2283324.n4.nabble.com/How-to-delete-all-queues-and-topics-programmatically-without-using-any-JMX-tp4660871.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to