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.
SOAPUIDIR
points to the installation directory of SoapUI, e.g.C:\Program Files\SmartBear\SoapUI-5.1.3
.NIRVANADIR
points 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 URL
and clickApply
. - Then add a
Connection Factory
,Topic Connection Factory
, andTopic
:
Setup Integration Server
- Create a
JNDI Provider Alias
for 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 Alias
for the JNDI Alias underSettings > Messaging > JMS Settings
. Use the corresponding values from Universal Messaging forJNDI Provider Alias Name
andConnection 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
IS
and add all above JARs to a new classpath group named IS:
ClickApply
and restart HermesJMS. - You should now be able to select
IS
underLoader
andhermes.JNDIConnectionFactory
underClass
:
Add the propertieshost
,port
,initialContextFactory
,providerURL
, andbinding
underConnection Factory
and 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 propertybinding
underConnection Factory
in 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.