activemq-users mailing list archives

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

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

http://www.koders.com/java/fidE02AF845C99D1EE4A2A301BABEB98605E7E8F1FB.aspx

Cheers

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


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net


Mime
View raw message