on ‎2009 Nov 18 1:33 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.