activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: how to get managementcontext from a broker
Date Wed, 10 Dec 2008 11:34:45 GMT

you should use MBeanServerInvocationHandler to get a proxy of a mbean.
Take a look at the BrokerFacadeSupport that does the similar job for the
web console


emc2family wrote:
> Hi,
> i was looking for a way to determine the queue depth of a destination via an
> mbeanserver object.  the broker service class has a managementcontext method
> that will allow me to get the mbeanserver object.  however, it seems like
> the broker service class is only meant for creating & configuring brokers. 
> is there a way for me to get the managementcontext from an existing broker? 
> thanks a bunch.  

Dejan Bosanac - get a free ActiveMQ user guide

ActiveMQ in Action -
Scripting in Java -

View raw message