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!
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.
Hi Sathish,
Do you happen to have a sample module or reference implementation for this? It would be really helpful
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?