Universal Messaging is the default messaging component used by webMethods Integration Server. Here is a short tutorial how you can test JMS processing using SoapUI and HermesJMS.
SOAPUIDIRpoints to the installation directory of SoapUI, e.g.C:\Program Files\SmartBear\SoapUI-5.1.3.NIRVANADIRpoints to the installation directory of Nirvana, e.g.C:\SoftwareAG\nirvana.
Setup Universal Messaging
- First of all you need to create the needed artifacts in your Universal Messaging realm. Start with the
JNDI Provider URLand clickApply. - Then add a
Connection Factory,Topic Connection Factory, andTopic:
Setup Integration Server
- Create a
JNDI Provider Aliasfor Universal Messaging underSettings > Messaging > JNDI Settings:
- You can now test the alias and should see the artifacts you created in Universal Messaging:
- Create a
JMS Connection Aliasfor the JNDI Alias underSettings > Messaging > JMS Settings. Use the corresponding values from Universal Messaging forJNDI Provider Alias NameandConnection Factory Lookup Name:
- Enable the Connection Alias:
Setup SoapUI/HermesJMS
- Copy the following JARs to
SOAPUIDIR\hermesJMS\lib:NIRVANADIR\lib\jndi.jar,NIRVANADIR\lib\nClient.jar,NIRVANADIR\lib\nJ2EE.jar,NIRVANADIR\lib\nJMS.jar. - Create a new session named
ISand add all above JARs to a new classpath group named IS:
ClickApplyand restart HermesJMS. - You should now be able to select
ISunderLoaderandhermes.JNDIConnectionFactoryunderClass:
Add the propertieshost,port,initialContextFactory,providerURL, andbindingunderConnection Factoryand configure them according to your environment. You can find the needed values in the JNDI settings of Universal Messaging:
- You should now be able to discover queues and topics for the session:
- To test the subscription to a topic, you can now browse the topic:
-
If you send a test message with Software AG Designer, you should see the message in HermesJMS:


Possible errors
hermes.HermesException: The binding property to locate the ConnectionFactory in the Context is not set:
Add the propertybindingunderConnection Factoryin the session preferences (right-click on the session andEdit).
Hi,
How do we provide certificate(.cer) or key store (.ks) in Hermes for accessing a nsps queue? Thanks in Advance.
Unfortunately, I can’t help you with that.