20
Views
3
Comments
Solved
IBM MQ - Post Message in one queue and Retrieve Data in another Queue

Hi Team

I have successfully integrated IBM MQ into our system. Currently, I’m able to post messages to a queue using a C# extension.

However, I now need to listen to another queue in the background to receive responses. Could you please suggest an approach or best practices to achieve this?

Thanks!

2025-02-01 08-24-49
Sathish Karunakaran
Solution

Hi Yousef,

I’ve implemented a similar use case in one of my previous projects — this approach might be helpful for you:

  • To Push Messages: I created a C# extension that connects to IBM MQ and puts messages into the target queue.

  • To Receive Responses: I exposed an OutSystems API to handle incoming response messages.

  • To Retrieve Messages from MQ: I developed a Windows Service (MQ Listener) that continuously listens to the response queue. Once a message is received, the service invokes the Exposed API and sends the message payload to it.

You can implement your custom business logic inside the API based on the received message.

UserImage.jpg
Yousef Al-Najjar

Hi Sathish, 

Do you happen to have a sample module or reference implementation for this? It would be really helpful 

2020-11-26 13-06-30
Joost Miltenburg

Hi Sathish,

1. would you care to share this windows service? 
2. there is also the possibility to have the queue trigger some process. Is there a reason you chose not to pursue this route?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.