Setting identity context
If you want to set the identity context information for a message:
- Open the queue using the MQOO_SET_IDENTITY_CONTEXT option.
- Put the message on the queue, specifying the MQPMO_SET_IDENTITY_CONTEXT
option. In the message descriptor, specify whatever identity context information
you require.
Note:
When you set some
(but not all) of the identity context fields using the MQOO_SET_IDENTITY_CONTEXT
and MQPMO_SET_IDENTITY_CONTEXT options, it is important to realize
that the queue manager does not set any of the other
fields.