What are the three components of a Message ?

Questions by secretcoder   answers by secretcoder

Showing Answers 1 - 5 of 5 Answers

shemina

  • Apr 10th, 2006
 

A jms message has three components

  1. A header
  2. Properties (Optional)
  3. A body (Optional)

Jacks

  • May 17th, 2006
 

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.

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions