A JMS message can be broken down into three parts:
The following sections describe the three parts in detail.
Every JMS message includes message header fields that are always passed from producer to consumer. The purpose of the header fields is to convey extra information to the consumer outside the normal content of the message body. The JMS provider sets some of these fields automatically after a message is sent to the consumer, but the MessageProducer has the opportunity to set some fields programmatically.
The JMSCorrelationID header field provides a way to correlate related messages. This is normally used for a request/response ...