MQ

 View Only
Expand all | Collapse all

One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

  • 1.  One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Tue November 01, 2022 11:21 AM
    Hello MQ fellows,


    Any advise on the following question, will be much appreciated.
    Could we setup IBM MQ in such a way, so when a message is placed into one queue, then IBM MQ mechanism (?) to copy this message to another queue, let's call it (somehow) mirror queue. So, the original message will be duplicated. One message at the original queue and a copy of this message to the mirror queue.Obviously we'll have two distinct applications to do a MQGET of these messages. The idea is to have a parallel run, for a limited period of time.
    FYI, we are using MQ v9.2.0.5 LTS on Windows, & MQ v9.1.0.3 on AIX.

    Thanks in advance for your reply.
    Cheers, Nick.



    ------------------------------
    NIKOLAOS DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    210-6881888
    ------------------------------


  • 2.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Tue November 01, 2022 12:05 PM

    Hi Nick,

    If you were at 9.3 I would suggest streaming queues: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=scenarios-streaming-queues.
    It sounds like that's exactly what you need!

    If you can't upgrade, then MQ publish / subscribe is the answer.

    Regards, Matt.



    ------------------------------
    MATTHEW LEMING
    ------------------------------



  • 3.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Tue November 01, 2022 12:49 PM

    You can also see some information on streaming queues in this presentation by David Ware: https://www.slideshare.net/DavidWare1/ibm-mq-whats-new-sept-2022

    Have a look at page 20 onward.

    Regards, Matt.



    ------------------------------
    MATTHEW LEMING
    ------------------------------



  • 4.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Tue November 01, 2022 01:13 PM
    Here is an IBM MQ support doc on how to do this if streaming queues is not an option.

    https://www.ibm.com/support/pages/mq-you-want-put-message-queue-and-you-want-generate-duplicate-messages-other-queues

    ------------------------------
    Tim Zielke
    ------------------------------



  • 5.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Wed November 02, 2022 03:30 AM
    Many thanks to all (Matthew & Tim) for their response,
    I have looked into msg streaming "mechanism" and it seems that is the feature covers my needs (checked relevant BM resources).
    I will upgrade Windows MQ infra to v9.2.3 in order to take advantage of it.
    Cheers, Nick

    ------------------------------
    NIKOLAOS DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    210-6881888
    ------------------------------



  • 6.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    IBM Champion
    Posted Wed November 02, 2022 03:49 AM
    MQ version 9.2.3 is the first version that supports streming queues.
    It is a CD (Continuous Delivery) version, which is supported 12 months after its availability.
    MQ 9.2.3 was announced in July 2021, so is out of support in 07/2022.
    If the infrastructure allows it, it would be better to upgrade to version 9.3, e.g. 9.3.0.1 which is an LTS (Long Sterm Support) version, supported for 5 years.

    Please note:
    • MQ 9.3.0.1 is a 9.3 LTS version, with FixPack 1.
    • MQ 9.3.1 is a CD version.

    HTH, LMD.

    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    #IBMChampion
    ------------------------------



  • 7.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Wed November 02, 2022 11:19 AM
    Thanks Luc for your notification.
    Pls disregard my previous comment about upgrade to CD version. Since we have deployed LTS versions in all environments, we will upgrade to v9.3.0.1 LTS, considering also that LTS is the suggested version for stability purposes especially in Prod.
    Cheers, Nick.

    ------------------------------
    NIKOLAOS DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    210-6881888
    ------------------------------



  • 8.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    IBM Champion
    Posted Thu November 03, 2022 02:46 PM
    Hello Nikolaos,

    If you need something more configurable than the new Stream feature in MQ, then I'd suggest you have a look at Capitalware's MQ Message Replication (MQMR).  The new MQ Stream can only replicate to 1 target queue (i.e. 1 to 1) and the target queue cannot be replicated whereas MQMR can replicate up to 100 target queues (i.e. 1 to many) and there are no restrictions on replicating a target queue. Plus MQMR has auxiliary programs to offload and reload messages to/from an SQLite database.

    Regards,
    Roger

    ------------------------------
    Roger Lacroix
    CTO
    Capitalware Inc.
    London ON Canada
    https://capitalware.com
    ------------------------------



  • 9.  RE: One message at the original queue and a copy of this message to the mirror queue. The idea is to have a parallel run

    Posted Fri November 04, 2022 05:15 AM
    Thanks Roger for your input.
    I will keep it in mind.
    Cheers, Nick.

    ------------------------------
    NIKOLAOS DAKORONIAS
    Application Integration & Middleware Solution Certified Specialist
    Kyndryl
    Athens
    210-6881888
    ------------------------------