5

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 likeActiveMQ,Artemis,OpenMQ etc.)

titou10
  • 2,814
  • 1
  • 19
  • 42
  • no there is not – Andy Guibert Sep 12 '18 at 20:46
  • 1
    @AndyGuibert Could they just download the IBM MQ RA and use it with Open Liberty? – JoshMc Sep 12 '18 at 20:53
  • @AndyGuibert thanks – titou10 Sep 12 '18 at 20:59
  • @JoshMc, I have the same question and I updated my post to add the question – titou10 Sep 12 '18 at 21:00
  • @JoshMc In case the answer from njr isn't explicit enough yes you can use any JCA compliant resource adapter to integrate open liberty with a queue manager including IBM MQ. – Alasdair Sep 12 '18 at 21:24
  • @Alasdair, thanks for the reply, at the time I commented njr's answer was not posted yet. Good information to know. Also good to see 3 different IBM employee's responding about a Open Liberty question, you should let your ibm-mq counterparts know that more participation from them would also be appreciated! – JoshMc Sep 12 '18 at 23:33

1 Answers1

7

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>

  ...
njr
  • 3,399
  • 9
  • 7
  • thanks. I will test it tomorrow and come back to approve your answer – titou10 Sep 13 '18 at 02:33
  • 1
    it works. Thanks! On the minor side, in eclipse with WDT, the`server.xml`editor flags the` – titou10 Sep 13 '18 at 17:15
  • One easy way to get the resource adaptor is to download it from Maven: https://mvnrepository.com/artifact/com.ibm.mq/wmq.jmsra – Sam Mar 17 '21 at 06:53
  • To get this working in an Open Liberty docker container, I dropped the `wmq.jmsra.rar` file in `/liberty/wlp/shared/resources/wmq/JavaEE/` – Sam Mar 17 '21 at 06:54