shemina
Answered On : Apr 10th, 2006
A jms message has three components
- A header
- Properties (Optional)
- A body (Optional)

1 User has rated as useful.
Login to rate this answer.
A JMS message consists of three parts:
- Message header
- For message identification. For example, the header is used to determine if a given message is appropriate for a "subscriber"
- Properties
- For application-specific, provider-specific, and optional header fields
- Body
- Holds the content of the message. Several formats are supported, including TextMessage, which wrap a simple String, that wrap arbitrary Java objects (which must be serializable). Other formats are supported as well.

1 User has rated as useful.
Login to rate this answer.
A message consists of two parts: 1. Data that is sent from one program to another 2. The message descriptor or message header The message descriptor identifies the message (message ID) and contains control information, also called attributes, such as message type, expiry time, correlation ID, priority, and the name of the queue for the reply.
The Message Descriptor consiste :
1.version
2.Message and/or correlation ID
3.persistent and non-persistent
4.priority
5.expiration date.
Login to rate this answer.