Search code examples
ibm-mqopen-liberty

Is there a "feature" in Open Liberty to connect to IBM MQ, equivalent to wmqJmsClient-2.0 in Liberty Profile?


IBM WebSphere Liberty Profileprovides the"wmqJmsClient-2.0"feature to interact withIBM MQ

Is there an equivalent for Open Liberty?

[UPDATED]

If not (as it seems), how to connect Open Liberty to IBM MQ?

Should I develop an Open Liberty "feature" equivalent of the one available in WLP, based on the IBM MQ official RAR file (currently "9.1.0.0-IBM-MQ-Java-InstallRA.jar") ?

Or is there a "generic" way to configure such a connection in Open Liberty?

(I guess the question arises with other Queue Managers like ActiveMQ "Classic", ActiveMQ Artemis, OpenMQ, etc.)


Solution

  • OpenLiberty has the jms-2.0 feature, which allows you to configure a JCA resource adapter which provides JMS such as the WebSphere MQ resource adapter.

    Configuration in server.xml would be something like the following,

    <server>
      <featureManager>
        <feature>jms-2.0</feature>
        <feature>jndi-1.0</feature>
        <feature>servlet-3.1</feature>
      </featureManager>
    
      <resourceAdapter id="wmqjmsra" location="C:/adapters/wmq/wmq.jmsra.rar"/>
    
      <jmsConnectionFactory jndiName="jms/cf1">
        <properties.wmqjmsra .../>
      </jmsConnectionFactory>
    
      ...