The message header provides envelope information about a message. The message header interface is supported by all message types, and all message types have the same header information.

The message header is not created directly by the application. When any type of message is created, its header procedure is automatically created. The message procedure delegates header method calls to its header procedure.

The following table lists the methods to access message header information.

Table 1. Accessing message header information
Set header methods Get header methods
setJMSReplyTo procedure setReplyToDestinationType procedure setJMSCorrelationID procedure setJMSCorrelationIDAsBytes procedure setJMSType procedure getJMSReplyTo function getReplyToDestinationType function getJMSCorrelationID function getJMSCorrelationIDAsBytes function getJMSType function getJMSDestination function getJMSRedelivered function getMessageType function getJMSMessageID function getJMSDeliveryMode function getJMSTimestamp function getJMSExpiration function getJMSPriority function hasReplyTo function