cancel
Showing results for 
Search instead for 
Did you mean: 

Monitoring JMS Queue Lengths

Former Member
0 Kudos

Hi there,

I need a method of monitoring a set of JMS Queue lengths (so we can see if the message are getting consumed quick enough) running within a Netweaver 7 instance. The JMS API does define a method of queue depth monitoring without looking (and counting) at each message (using a QueueBrowser for example, here http://fixunix.com/weblogic/224918-jms-queue-length.html). There seems to be a specific method of doing this for JBoss, Tomcat etc..

So my question is how can I monitor a JMS Queue's depth in netweaver? and write the output to a log for example

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Even if this thread is some years old, at least it's a standard question, so here comes the standard answer (but it is also given in the referenced thread on fixunix.com):

int msgCount = java.util.Collections.list(queueBrowser.getEnumeration()).size();

where queueBrowser is a standard QueueBrowser object.

So, no specific methods needed, the standard provides it all...

Best regards

Detlev