activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: how to get number of queue in a message broker
Date Mon, 27 Aug 2007 07:46:59 GMT
On 8/24/07, Ipraveen <praveen.jain@tarmin.com> wrote:
>
> hi
> i am trying to get how much queue in my message broker, when i connect by
> code
>
> brokerService.addConnector("tcp://localhost:61615");
> brokerService.start();
> Object topics[]=brokerView.getTopics();
> for(int k=0;k<topics.length;k++){
> System.out.println("name of queue is "+topics[k]);
> }
>
> i am able to access the number of queue, but when i start activemq server
> and access the same code i am unable to find the number of queues,

I don't understand. You can access the number of queues when you are
not running the broker?

Or is this that you are in a different JVM and need to connect over a
remote JMX connector?
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message