Message context
Message context information allows the application that retrieves the message to find out about the originator of the message. The retrieving application might want to:
- Check that the sending application has the correct level of authority
- Perform some accounting function so that it can charge the sending application for any work that it has to perform
- Keep an audit trail of all the messages that it has worked with
When you use the MQPUT or MQPUT1 call to put a message on a queue, you can specify that the queue manager is to add some default context information to the message descriptor. Applications that have the appropriate level of authority can add extra context information. For more information on how to specify context information, see Controlling context information.
All context information is stored in the eight context fields of the message descriptor. The type of information falls into two categories: identity and origin context information.
Parent topic:
WebSphere MQ messages
fg10860_