JMS%20Interview%20Questions%20and%20Answers
Question: What are the three components of a Message?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. |
Is it helpful?
Yes
No
Most helpful rated by users:
- How many messaging models do JMS provide for and what are they?
- What is JMS (Java Messaging Service)?
- How the JMS is different from RPC?
- What are the different types of messages available in the JMS API?
- What are the basic advantages of JMS?