HermesJMS configuration for Weblogic 11g

HermesJMS is a great tool for Java Messaging. Its a JMS browser and a management tool. It helps to interact with JMS providers making it simple to publish and edit messages, browse or seach queues and topics, copy messages around and delete them.

But we need to configure this tool for each and every JMS provider. Following are the steps to install and configure it for Weblogic Server 11g:

1. Download the tool from Sourceforge or get it from hermesjms.com. It works fine with 64-bit as well.

2. Unzip the hermes.zip and open the hermes.bat from INSTALL_DIRECTORY/bin.

3. Add JAVA_HOME at the top of the file and point it to the location where Java is installed (point it to 64-bit Java if its a 64-bit machine).

4. Run hermes.bat.

5. From sessions tab, click on New Session and:

a. Enter the name of the Session

b. Click on the Providers

c. Right-click and create a classpath group and enter a name.

d. Enter the path to weblogic.jar file (located at $WEBLOGIC_HOME/server/lib directory).

6. Click on sessions tab again and in the ConnectionFactory section, select the Class as hermes.JNDIConnectionFactory. If you choose Queue or Topic connection factory, either queues or topics only will be listed. If JNDIConnectionFactory is chosen, then both queue and topics will be listed.

a. Right-click and click on Add Property and add the following properties:

i. binding: [JNDI_of_connection_factory]  (This connection factory has to be created first in the Weblogic server).

ii. initialContextFactory: weblogic.jndi.WLInitialContextFactory

iii. providerURL: t3://[hostname]:[port]

iv. securityCredentials: [weblogic_password]

v. securityPrincipal: [weblogic_username]

7. On the session that is created, click on Browse to get the queues and topics.

8. Right-click on the queue, and click on New message to insert/produce a new message.

One thought on “HermesJMS configuration for Weblogic 11g

  1. 63norr April 29, 2014 at 5:51 pm Reply

    Great guide! Saved me some time!

Leave a comment