Hi, my name is Paulo, I am portuguese, and I am currently working as a freelance Software Engineer in Luxembourg. This is my personal blog, where I express my views in various subjects. You can contact me using barracadopaulo@gmail.com. Welcome!

3/17/10

WLST- Get Current Message Count for a JMS Queue

Here is a small WLST script that can be used to monitor the message count of a certain queue. This can be specially handy for monitoring exception queues.

connect('weblogic', 'weblogic', 't3://localhost:7001')
domainRuntime()
cd('ServerRuntimes/AdminServer/JMSRuntime/AdminServer.jms/JMSServers/MyJMSServer/Destinations/MyJMSModule!MyQueue')
msgNumber = get('MessagesCurrentCount')
print msgNumber, " messages in the queue!"

0 comments:

Archive

My Profile