More About Messages
So far, you've seen a lot about queues and topics, but not much about messages. Messages are the most important part of JMS, and there are many different types of messages and many interesting features common to all messages.
A JMS message has three parts, as shown in Figure 19.7.
Figure 19.7. A JMS message has a header, properties, and a body.
The message header is a set of values that is present on every message. The properties are similar to header values in that they are separate from the actual message content and can appear on any type of message. You can think of the properties as header values that you define yourself. ...
Get Special Edition Using Java™ 2 Enterprise Edition 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.