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 :
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++;
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();
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
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 :