[jboss-user] [JBoss Messaging] - Re: Monitoring the depth of a Queue/Topic

2007-04-04 Thread exhilarator
What is the JMX Interface which is mentioned to achieve this . Is there any way to use this in Spring Framework View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4034411#4034411 Reply to the post :

[jboss-user] [JBoss Messaging] - Re: Monitoring the depth of a Queue/Topic

2007-02-22 Thread jurivrljicak
this way? QueueBrowser browser = s.createBrowser(queue); int depth= getDepth(browser); private int getDepth(QueueBrowser browser) throws JMSException { int i=0; for(Enumeration e = browser.getEnumeration(); e.hasMoreElements(); ){ i++;

[jboss-user] [JBoss Messaging] - Re: Monitoring the depth of a Queue/Topic

2007-02-22 Thread timfox
jurivrljicak wrote : this way? | | QueueBrowser browser = s.createBrowser(queue); | int depth= getDepth(browser); | | private int getDepth(QueueBrowser browser) throws JMSException { | int i=0; | for(Enumeration e = browser.getEnumeration(); e.hasMoreElements();

[jboss-user] [JBoss Messaging] - Re: Monitoring the depth of a Queue/Topic

2007-02-20 Thread genman
Queue depth cannot be obtained using a standard JMS API. For JBoss MQ there is a JMX interface. For JBoss Messaging there is a compatible JMX interface. I don't really see how you could make this app-server agnostic. As an example, SonicMQ has a proprietary API that you can use. ActiveMQ uses

[jboss-user] [JBoss Messaging] - Re: Monitoring the depth of a Queue/Topic

2007-02-20 Thread mbabauer
genman wrote : I don't really see how you could make this app-server agnostic. | Well, you got me going in the right direction in any light. It was nice to dream of a world where one J2EE app could coexist peacefully with many an Ap Server. View the original post :