While our simple examples only exchange string messages, there are several possible JMS message types. Every JMS message type is a subclass of javax.jms.Message. The different message types merely dictate the type of the message contents.
A JMS message consists of a header, a set of properties, and the message body.
The JMS header includes a standard set of fields defined in the JMS specification. The javax.jms.Message type includes a get and set method for each of the JMS header fields. The header fields are named metadata values used by the application to provide further information about the message.
The JMS header fields provide extra information about the JMS message. Many of the fields contain basic information about ...