Message descriptor fields as properties
Most message descriptor fields can be treated as properties. The property name is constructed by adding a prefix to the message descriptor field's name.
If an MQI application wants to identify a message property contained in a message descriptor field, for example, in a selector string or using the message property APIs, use the following syntax:Property name | Message descriptor field |
---|---|
Root.MQMD.Field | Field |
Specify Field with the same case as for the MQMD structure fields in the C language declaration. For example, the property name Root.MQMD.AccountingToken accesses the AccountingToken field of the message descriptor.
The StrucId and Version fields of the message descriptor are not accessible using the syntax shown.
Message descriptor fields are never represented in an MQRFH2 header as for other properties.
If the message data starts with an MQMDE that is honored by the queue manager, the MQMDE fields can be accessed using the Root.MQMD.Field notation described. In this case the MQMDE fields are treated as logically part of the MQMD from a properties perspective. See Overview of MQMDE.
Parent topic: Property names