The Details of a JMS Message
A JMS message can be broken down into three parts:
Message header
Message properties
Message body
The following sections describe the three parts in detail.
The Message Header
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.
JMSCorrelationID
The JMSCorrelationID header field provides a way to correlate related messages. This is normally used for a request/response ...
Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.