MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Intercept a message on MQ, update it and send it to destination application

  • 1.  Intercept a message on MQ, update it and send it to destination application

    Posted Fri January 28, 2022 10:14 AM
    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
    ------------------------------


  • 2.  RE: Intercept a message on MQ, update it and send it to destination application

    Posted Sat January 29, 2022 05:34 AM

    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
    ------------------------------