Blocking message transfer to MQ
Hi, I would like to send messages to MQ such that when a message is PUT on the queue, Camel will wait for a response from the application that is consuming from the queue. The response will come on a second queue. Once the response arrives, Camel will check that the response has the same Correlation ID as the ID of the sent message. If the ID and correlation ID match, the message will be considered as complete and Camel will send the next message. This sounds like a common pattern. Is there an out of box support for implementing it? Regards, Yash
Re: Blocking message transfer to MQ
Hi Yes, camel-jms can do this with request/reply - using JMS standard for that. There are different options in camel-jms to control whether to use temporary or fixed named reply queues, timeouts and much more. On Mon, Mar 13, 2023 at 3:46 PM Yash Ganthe wrote: > Hi, > > I would like to send messages to MQ such that when a message is PUT on the > queue, Camel will wait for a response from the application that is > consuming from the queue. The response will come on a second queue. Once > the response arrives, Camel will check that the response has the same > Correlation ID as the ID of the sent message. If the ID and correlation ID > match, the message will be considered as complete and Camel will send the > next message. > > This sounds like a common pattern. Is there an out of box support for > implementing it? > > Regards, > Yash > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
Re: Blocking message transfer to MQ
You would be looking at implementing Request/Reply EIP. https://camel.apache.org/components/3.20.x/eips/requestReply-eip.html ચિરાગ/चिराग/Chirag -- Sent from My Gmail Account On Mon, Mar 13, 2023 at 10:46 AM Yash Ganthe wrote: > > Hi, > > I would like to send messages to MQ such that when a message is PUT on the > queue, Camel will wait for a response from the application that is > consuming from the queue. The response will come on a second queue. Once > the response arrives, Camel will check that the response has the same > Correlation ID as the ID of the sent message. If the ID and correlation ID > match, the message will be considered as complete and Camel will send the > next message. > > This sounds like a common pattern. Is there an out of box support for > implementing it? > > Regards, > Yash