GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  JMS
Go To First  |  Previous Question  |  Next Question 
 JMS  |  Question 11 of 17    Print  
What are the three components of a Message ?

  
Total Answers and Comments: 3 Last Update: April 21, 2009     Asked by: secretcoder 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Jacks
 
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.


Above answer was rated as good by the following members:
btarasu
April 10, 2006 10:12:50   #1  
shemina        

RE: What are the three components of a Message ?

A jms message has three components

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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 17, 2006 07:39:26   #2  
Jacks Member Since: May 2006   Contribution: 2    

RE: What are the three components of a Message ?
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.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 21, 2009 06:15:25   #3  
srinivasaraobora Member Since: May 2006   Contribution: 31    

RE: What are the three components of a Message ?
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.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape