Message Context



Message Context information allows the application that retrieves the message to find out about the originator of the message. The type of information falls  into two categories:
Identity and origin context information.

Identity context:Identity context information identifies the user of the application that first put the message on a queue:
UserIdentifier field
AccountingToken field
ApplIdentityData
Origin context

Origin Context information describes the application that put the message on the queue on which the message is currently stored. The message descriptor contains the following fields for orgin context information.

PUTAPPLTYPE: This is the type of the server that put the message into the queue, for example: 32-bit windows, UNIX or a mainframe CICS transaction Server. This field is queue manager driven.

PUTAPPLNAME: This contains  name of the application program that put the message into queue. This is queue manager driven.

PUTDATE: The date on which the message was put on the queue. This will written only by the queue manager, we can not write some data into this field.

PUTTIME: The time at which the message was put to the queue. This will write only by the queue manager, we can not write some data into this field.

APPLORIGINDATA: This can be filled by the application to give the details about the origin of the client that put the message into the queue.