Header fields in an XMS message

To allow an XMS application to exchange messages with a WebSphere JMS application, the header of an XMS message contains the JMS message header fields.

The names of these header fields commence with the prefix JMS. For a description of the JMS message header fields, see the Java Message Service Specification.

XMS implements the JMS message header fields as attributes of a Message object. Each header field has its own methods for setting and getting its value. For a description of these methods, see IMessage. A header field is always readable and writable.

Table 1 lists the JMS message header fields and indicates how the value of each field is set for a transmitted message. Some of the fields are set automatically by XMS when an application sends a message or, in the case of JMSRedelivered, when an application receives a message.

Name of the JMS message header field How the value is set for a transmitted message (in the format method [class])
JMSCorrelationID Set JMSCorrelationID [Message]
JMSDeliveryMode Send [MessageProducer]
JMSDestination Send [MessageProducer]
JMSExpiration Send [MessageProducer]
JMSMessageID Send [MessageProducer]
JMSPriority Send [MessageProducer]
JMSRedelivered Receive [MessageConsumer]
JMSReplyTo Set JMSReplyTo [Message]
JMSTimestamp Send [MessageProducer]
JMSType Set JMSType [Message]
Parent topic: XMS messages