ApplOriginData (MQCHAR4)
This is part of the origin context of the message. For more information about message context, see Overview for MQMD and Message context .
ApplOriginData
is information that is defined by the
application suite that can be used to provide additional information about the origin of the
message. For example, it could be set by applications running with suitable user authority to
indicate whether the identity data is trusted.
The queue manager treats this information as character data, but does not define the format of it. When the queue manager generates this information, it is entirely blank.
For the MQPUT and MQPUT1 calls, this is an input/output field if MQPMO_SET_ALL_CONTEXT is
specified in the PutMsgOpts
parameter. Any information
following a null character within the field is discarded. The queue manager converts the null
character and any following characters to blanks. If MQPMO_SET_ALL_CONTEXT is not specified, this
field is ignored on input and is an output-only field.
This is an output field for the MQGET call. The length of this field is given by MQ_APPL_ORIGIN_DATA_LENGTH. The initial value of this field is the null string in C, and 4 blank characters in other programming languages.
When the message is published, although ApplOriginData is set, it is blank in the subscription that it receives.