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++;
e.nextElement();
}
return i;
}
javax.jms api
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020543#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...