Processing of RHF2 message headers in ibm mq message middleware jms messages, mqrhf2

Source: Internet
Author: User
Tags ibm mq

Processing of RHF2 message headers in ibm mq message middleware jms messages, mqrhf2

When the company's technical platform is connected to a brokerage with ibm mq message middleware, the message header information is added to the message sent to MQ: RHF2, resulting in abnormal message receiving and processing. Record how the problem is handled here.

The targetClient parameter is provided in ibm mq to control whether the message header is enabled in jms messages. When using jms as the client of ibm mq, you can add this parameter after the message target (queue name or topic name) in the format of topic: // {target name }? TargetClient = 1

If targetClient is set to 1, the RHF2 message header is not included in the message. If targetClient is set to 0 or this parameter is not set, the RHF2 message header is included in the message.

For example, when creating a topic:

String str = "topic: //" + topic + "? TargetClient = "+ targetClient;

Topic topic =Session. createTopic (str );

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.