Java Message Service (JMS) Question:

What is the use of TextMessage?

JMS Interview Question
JMS Interview Question

Answer:

TextMessage contains instance of java.lang.String as it's payload. Thus it is very useful for exchanging textual data. It can also be used for exchanging complex character data such as an XML document.


Previous QuestionNext Question
What is the basic difference between Publish Subscribe model and P2P model?What is the use of MapMessage?