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!"
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
Subscribe to:
Post Comments (Atom)
Archive
-
▼
2010
(27)
-
►
January
(12)
- IPAD
- WebLogic- EJB3 uses Spring
- A Little Less Conversation
- A tricky SQL question for an interview
- Fundamental Rights of the European Union- Article ...
- Java Posse- Holiday Special 2009/2010
- EJB4- One whish to the list
- Right to the Integrity of the Person
- Charter of Fundamental Rights of the European Unio...
- EJB and Dynamic Dependency Injection
- Nativity scene with a military vehicle
- Fighting discrimination in Lux- a joke
-
►
January
(12)
0 comments:
Post a Comment