This was originally posted on my dev2dev blog January 2nd, 2008.
The WebLogic Server Administration Console provides the ability to monitor and view JMS messages from 9.x onwards. However it is a web-based tool that is optimized for configuration, not monitoring and development testing. Looking at the contents of multiple messages requires multiple screen refreshes and it can not do some advanced JMS activities like copy messages from one queue to another very easily. Hermes JMS is a handy open source project hosted by Sourceforge and built by Colin Crist that can be used to monitor, inspect, and interact with JMS Queues, Topics, and Messages. Here's how Colin describes it on the website:
HermesJMS is an extensible console that helps you interact with JMS providers making it easy to browse or search queues and topics, copy messages around and delete them. It fully integrates with JNDI letting you discover administered objects stored, create JMS sessions from the connection factories and use any destinations found. Many providers include a plugin that uses the native API to do non-JMS things like getting queue depths (and other statistics) or finding queue and topic names.
It works with many of the popular JMS providers such as Active MQ, Arjuna MQ, Tibco EMS, Fiorano MQ, JBoss MQ, JORAM, OpenJMS, Oracle, Pramati, SAP, SeeBeyond ICAN, SeeBeyond JCAPS, Sonic MQ, WebLogic JMS, WebMethods, and WebSphere MQ. This post will explain how to get Hermes installed and configured for use with WebLogic JMS. If you would like to see the setup with WebLogic as a web recording, go here, otherwise read on for the step-by-step.
If you work in the financial vertical, Hermes also has some capabilities with FIX messages that are worth checking out.
To install, get the installer from sourceforge and run “java –jar hermes-installer-1.12.jar” in the directory where you have placed the installer jar.
Hermes can monitor multiple queues at once, auto-refresh, use selectors, delete messages, etc. Check out the user guide at http://www.hermesjms.com for more information and tutorials.
Comments from dev2dev entry:
Posted by: jbayer on February 11, 2008 at 8:06 AM
Hi, I downloaded this utility to try to analize FIX log. It looks very nice and powerful, but I didn't find how I may sort all messages by time. Now I can see all incoming messages first and all outgoing messages after this. It's very uncomfortable to analize log file by this way. Is it possible to see all messages sorted by time, so it will be possible to see server's answer to each request. Please advice. Regards
Posted by: ekhaskel on February 9, 2008 at 3:05 PM
Hi James, I've updated the WLS page with a link to here. The other way to do this - one that may also seem more familiar to many - is to create a context, browse it and then select the connection factory to use as the basis for a session. This JBoss tutorial shows you what I mean. Regards, Colin.
Posted by: colincrist on January 10, 2008 at 5:20 AM