activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject Re: Gathering the information of a Queue in Java
Date Thu, 16 Jun 2011 17:03:39 GMT
here are my notes on doing
this...http://www.consulting-notes.com/2010/08/monitoring-and-managing-activemq-with.html


Aneesh wrote:
> 
> I went through those, but still cant get it..
> 
> I only have the BrokerService instance with me.
> From this instance i need to look up the attributes of a queue..
> is it possible?
> 
> Basically from the junit files in the repository this is the way in whic
> we can get a QueueViewMbean instance of a queue;
> 
>  ObjectName queueViewMBeanName = assertRegisteredObjectName(domain +
> ":Type=Queue,Destination=" + getDestinationString() +
> ",BrokerName=localhost");
> 
>  QueueViewMBean queue =
> (QueueViewMBean)MBeanServerInvocationHandler.newProxyInstance(mbeanServer,
> queueViewMBeanName, QueueViewMBean.class, true);
> 
>  
> How can i obtain this from the BrokerService instance?
> I cant get the MBeanServer from the BrokerService
> Any suggestions will be really helpful..
> 
> Thanks
> 


--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-Gather-the-information-of-a-Queue-in-Java-tp3596470p3603061.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message