MQRFH2 header

The MQRFH2 header is used to pass messages to and from a message broker belonging to WebSphere Event Broker. In a message, the MQRFH2 header follows the WebSphere MQ message descriptor (MQMD) and precedes the message body, if present.

Other headers, such as the IMS/ESA or CICS bridge headers, are allowed either before or after the MQRFH2 header, but before the message body.

If you are using the Message Queuing Interface (MQI) to write application programs you need to understand the structure and content of the MQRFH2 header.

For more information, refer to:

Multiple MQRFH2 headers

A message can have more than one MQRFH2 header.

For example, if an application forwards a message, including its header, to another application, a second MQRFH2 header precedes the header in the message being forwarded.
  • Attributes that describe the body of the message, such as the domain, set, type, and format, or the character set ID and encoding, are taken from the last MQRFH2 header, which is immediately in front of the body of the message.
  • Anything else, such as the topic for a publish/subscribe message, is taken from the first MQRFH2 header.