Wednesday 15 February 2017

How to configure HermesJMS in SOAP UI for IBM MQ

How to configure HermesJMS in SOAP UI for IBM MQ


How to install HermesJMS in Soap UI, please visit my previous post.

HermesJMS is a handy open source project hosted by Sourceforge,that can be used to monitor, inspect, and interact with JMS Queues, Topics, and Messages.

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.

Configure HermesJMS

Prerequisites
Before configuration, make sure the following has been done:

IBM MQ is installed and started.
HermesJMS is installed with SOAP UI.
HermesJMS has been added to Preferences as per below.

How to configure HermesJMS in SOAP UI for IBM MQ
How to configure HermesJMS in SOAP UI for IBM MQ

Launch HermesJms: Start HermesJMS from the Project menu:
     Select Project > Start HermesJMS
The HermesJMS Manager opens.

How to configure HermesJMS in SOAP UI for IBM MQ

How to configure HermesJMS in SOAP UI for IBM MQ

Create Session: To access a provider you need to configure a session. This should include a connection factory for your provider and the needed connection details. Click on New session and Enter a name for the session: LocalMQ and then click apply and OK.

How to configure HermesJMS in SOAP UI for IBM MQ

How to configure HermesJMS in SOAP UI for IBM MQ

  The session is now accessible in the HermesJMS manager:

How to configure HermesJMS in SOAP UI for IBM MQ

Add Provider: Start with a created Session, click on Edit and Choose the Providers tab first at the bottom.

How to configure HermesJMS in SOAP UI for IBM MQ

How to configure HermesJMS in SOAP UI for IBM MQ

Select Classpath Groups (it may be the only one available).Right-click in the Classpath Groups area,Select Add Group and Enter the name : MQ

How to configure HermesJMS in SOAP UI for IBM MQ

Add these all jar files in Library section.If the scan window opens, click Scan. Click Apply and OK.

How to configure HermesJMS in SOAP UI for IBM MQ
The new (or modified) session is available in the HermesJMS manager:In order to have configuration loaded, HermesJMS must be restarted.

Add Connection Factory: A connection factory is an object used to create connections to the provider. Click Apply and OK.

How to configure HermesJMS in SOAP UI for IBM MQ

The modified session is now accessible in the HermesJMS manager:

Add Properties:

In order for HermesJMS to handle the connections, you need to add plugin and properties properties containing addresses to use for the broker and service.Right-click in the Plugin Property area. Click apply and OK.

How to configure HermesJMS in SOAP UI for IBM MQ

Enter Queue or Topic. Enter all queues, topic of Local_Queue queue manager. Click apply and OK.

How to configure HermesJMS in SOAP UI for IBM MQ

In order to have configuration loaded, HermesJMS must be restarted.The created session in HermesJMS named LocalMQ, containing four queues which we can use from within SoapUI.

How we can use created session from within SoapUI, I will post on my later post.

Related Topics

How to install HermesJMS with SoapUI





11 comments:

  1. Hi,

    When I am selecting IBM WebsphereMQ plugin from the plugin dropdown then I am getting the error:
    Unable to locate this plugin.
    Select the Loader the JMS provider classes are in before choosing the plugin.

    Please help me in resolving this issue.

    ReplyDelete
    Replies
    1. Hi,

      First select mentioned loader and class in connection factory than select IBM WebsphereMQ plugin from the plugin drop down.

      Delete
  2. Hi Nitesh

    I have configured HermesJMS for IBM MQ and I can see all of the queues in the session that I created from HermesUI.
    But when I try to browse a particular queue, the error displayed is :

    Java.lang.IllegalAccessError: tried to access field com.ibm.mq.jmqi.JmqiEnvironment.MQ_EXIT_NAME_LENGTH from class com.ibm.msg.client.wmq.internal.WMQConnection at com.ibm.msg.client.wmq.internal.WMQConnection.getConnectOptions(WMQConnection.java:1358)

    But when I try to add a JMS endpoint from SOAPUI, I am not able to see this session that I created above in the drop down.

    SOAPUI Install path is E:\Program Files\SmartBear\SoapUI-5.0.0\
    My JARs are in E:\MyFolder
    Hermes Config is in E:\Program Files\SmartBear\SoapUI-5.0.0\hermesJMS\cfg

    Couple of options I tried were :

    Setting the Tools - Hermes JMS to E:\Program Files\SmartBear\SoapUI-5.0.0\hermesJMS\cfg
    Changing the Hermes Config in Add JMS endpoint dialog to both the default locaton(E:\.hermes) & E:\Program Files\SmartBear\SoapUI-5.0.0\hermesJMS\cfg

    Unfortunately none of these options work for me and I am hoping you'd be able to help.

    Many Thanks
    Sam

    ReplyDelete
    Replies
    1. Hi, have you used same mq jar which is available in websphere mq installation lib folder, any difference in jar will be cause of this issue.

      Delete
  3. Hi,
    Is there a way to just browse the message and not receive?
    Want to do this may be through hermes-config.xml and certainly not through a code.

    Thanks,
    Eiston Dsouza

    ReplyDelete
  4. When I click on Discover I can find the queues in Hermes however I want to see the topics. I can find Topics and I am using MQTOPICCONNECTION Factory

    ReplyDelete
  5. Hi,

    Can you let me know the jars or download link for WebSphere MQ intslaltion.

    Thanks

    ReplyDelete
  6. Download the developer version of Websphere MQhttps://www.ibm.com/developerworks/community/blogs/messaging/entry/develop_on_websphere_mq_advanced_at_no_charge?lang=en

    ReplyDelete
  7. I cannot find connector and dhbcore jars in MQ . What is the alternative?

    ReplyDelete
  8. When i launch Hermes JMS ,Hermes logo is coming and disappeared.Its not opening Hermes JMS Manager..ANy insight on this?

    ReplyDelete