activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <>
Subject Re: Is there any way to perform queue operations in ActiveMQ without JMX
Date Mon, 01 Feb 2016 17:57:33 GMT
The BrokerService is the correct place to do it.  The BrokerService is the
entry point for the entire broker and just about anything that is
accessible from JMX you should be able to get to from that object.  For
something like managing a queue, you can start by using the BrokerService
to get the RegionBroker and from there you can call getDestinationMap() and
find the queue you want to use in that map.

Something like should work: queue =

On Mon, Feb 1, 2016 at 1:59 AM, Allans <> wrote:

> Currently I am using JMX to do ActiveMQ operations like purge, pause, stop,
> etc. through JConsole. I would like to do the same without JMX
> programmatically. I tried to use BrokerService of ActiveMQ, but couldn't
> actually do it.
> Can anyone please help me on this? I just want to remove JMX and use the
> ActiveMQ API itself to perform queue operations.
> It would be of great help if anyone can explain with example. Thanks in
> advance.
> --
> View this message in context:
> Sent from the ActiveMQ - Dev mailing list archive at

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