activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aneesh <cv_ane...@yahoo.co.in>
Subject Re: Gathering the information of a Queue in Java
Date Thu, 16 Jun 2011 12:33:29 GMT
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-tp3596470p3602298.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message