Search code examples
muleibm-mqmulesoft

Mulesoft IBM MQ connector publish-consume operation equivalent in Mule 3.9?


I am building an api which is supposed to send message to an IBM MQ and receive the response from another queue. But the operation has to appear synchronous to the caller of the api. I'm using Mule 3.9.2.

Seems Mule 4 has a connector called IBM MQ connector which has a publish conume operation to achieve this - https://docs.mulesoft.com/ibm-mq-connector/1.6/ibm-mq-publish-consume. But how do i get this done in Mule 3.9.2. I'm currently trying to get this done with the WMQ connector and using a request-reply pattern but with no success.

Tried using request-reply, enter image description here

Also had it on a separate flow,

enter image description here


Solution

  • Got it working by using the request-response exchange pattern available in the WMQ connector in 3.9. enter image description here

    enter image description here