Set all context
If you want to set both the identity and the origin context information for a message:
- Open the queue using the MQOO_SET_ALL_CONTEXT option.
- Put the message on the queue, specifying the MQPMO_SET_ALL_CONTEXT option. In the message descriptor, specify whatever identity and origin context information you require.
Appropriate authority is needed for each type of context setting.
Parent topic:
Controlling context information
fg12420_