Processing of the RHF2 message header in the IBM MQ message middleware JMS message

Source: Internet
Author: User
Tags ibm mq

The company's technology platform in the docking of IBM MQ message middleware with a broker, messages sent to MQ have more message header information:RHF2, resulting in the reception of the message is not working properly. Record how this problem is handled here.

A parameter, targetclient, is provided in IBM MQ that can be used to control whether the message header is enabled in a JMS message. When using JMS as the client for IBM MQ, add the parameter after the message destination (queue or subject name) in the format: topic:///{ target name }?targetclient=1

targetclient=1 When: The message does not include RHF2 message header; targetclient=0 or do not set this parameter: The message will include RHF2 the message header.

If you are creating a theme:

String str = "topic:///" + topic + "? targetclient=" + targetclient;

Topic topic= session. Createtopic (str);

*******************************************************************************

Bingjava

Copyright NOTICE: This article for Bo Master original article, reprint please indicate source: http://www.cnblogs.com/bingjava/p/5258274.html

*******************************************************************************

Processing of the RHF2 message header in the IBM MQ message middleware JMS message

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.