This sounds like a simple program which would get a message from a queue (in a transaction) validate and change what is needed in the message, then put it back to the same queue or onto a different queue (your question text varies from your subject line); and finally commit the transaction.
This could be written in any language that has MQ language bindings. Java is one such language.
I suggest your familiarise yourself with the IBM supplied sample applications to help to learn how to get and put messages.
If you have further details of your task, or questions once you try this out, please post more details and we can advise in a more specific way as and when you need it.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website:
https://www.mqgem.com------------------------------
Original Message:
Sent: Fri January 28, 2022 06:34 AM
From: Venkata Sai Teja Jajam
Subject: Intercept a message on MQ, update it and send it to destination application
Is there any easy way to consume a message from MQ queue, validate a header value and update the message and put it back on to the queue? Can this be achieved using MQ Java libraries? Please advise.
------------------------------
Venkata Sai Teja Jajam
------------------------------