Sending metadata with messages using MQRFH2

You can use the RFH2.USR header to send Metadata with the message. RFH2 can be specified as a format in the MQSeries Send protocol, however there is no further configuration option available to use this header data to store metadata. Due to this, additional modifications were made.

The MQRFH2 header is based on the MQRFH header, but it allows Unicode strings to be transported without translation, and it can carry numeric data types.

The MQRFH2 structure defines the format of the version-2 rules and formatting header. Use this header to send data that has been encoded using an XML-like syntax. A message can contain two or more MQRFH2 structures in series, with user data optionally following the last MQRFH2 structure in the series.