You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Ipraveen <pr...@tarmin.com> on 2007/08/24 16:32:43 UTC
how to get number of queue in a message broker
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,
Object topics[]=brokerView.getTopics();
for(int k=0;k<topics.length;k++){
System.out.println("name of queue is "+topics[k]);
}
so any one can help me how to use brokerview, or how do i get number of
queues.
thanks
Praveen
ipraveenjain@gmail.com
--
View this message in context: http://www.nabble.com/how-to-get-number-of-queue-in-a-message-broker-tf4323937s2354.html#a12313585
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: how to get number of queue in a message broker
Posted by James Strachan <ja...@gmail.com>.
On 8/24/07, Ipraveen <pr...@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/