MQ

 View Only
  • 1.  AMQP - RHF header

    Posted Mon March 25, 2024 10:46 AM

    Probably a newbie question, but I cant find any good info on this:
    How does this RHF header work??

    Scenario:
    We are using SAP Integration Suite to read MQSTR messages (payload = "TEST") from a MQ series queue.
    We send the same message via AMQP adapter to a local queue on MQ Series.
    NOw it is received as MQRHF2 type of message.
    Our mainframe programs now GET the RHF header in the payload before the "TEST" payoad which makes the old mainframe program fail.
    When we use tools like MQ Explorer and we see only "TEST" in the data, which confuses me.

    Question:
    Can we somehow change setup so that the mainframe will still get only the sent payload ("TEST"), without RHF header, or can we do the GET differently to not get the header?

    We cannot use targClient=1 in SAP INtegration Suite.



    ------------------------------
    Andreas Holmberg
    ------------------------------



  • 2.  RE: AMQP - RHF header

    Posted Mon March 25, 2024 03:50 PM

    Hi Andreas,

    Set PROPCTL(NONE) on the queue definition and that will strip the properties (aka MQRFH2 header) from the front of the message before it is given to the getting application. 

    Cheers,

    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 3.  RE: AMQP - RHF header

    Posted Tue March 26, 2024 06:04 AM

    Sounds too good to be true. I will try, thanks.



    ------------------------------
    Andreas Holmberg
    ------------------------------



  • 4.  RE: AMQP - RHF header

    Posted Sat April 06, 2024 04:21 AM

    Thanks! solution tested and verified. 



    ------------------------------
    Andreas Holmberg
    ------------------------------



  • 5.  RE: AMQP - RHF header

    Posted Tue March 26, 2024 05:47 AM

    It should be targetClient=1 not targClient...



    ------------------------------
    Francois Brandelik
    ------------------------------



  • 6.  RE: AMQP - RHF header

    Posted Tue March 26, 2024 06:05 AM

    There is no option in our Broker to give any property like this, no matter what the name. Thanks.



    ------------------------------
    Andreas Holmberg
    ------------------------------



  • 7.  RE: AMQP - RHF header

    Posted Tue March 26, 2024 03:37 PM

    > When we use tools like MQ Explorer and we see only "TEST" in the data, which confuses me.

    It is because in the code for MQ Explorer, it sets the MQGMO's Options field to include MQGMO_PROPERTIES_IN_HANDLE. You could update your code to do the same thing.

    Or you can simply go with Morag's suggestion.

    later

    Roger



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