Message Types

What are different message types?

JMS API specifies 6 different types of messages. Each message type corresponds to a different message body and allows to send and receive data in different forms.

How can we create different message types?

While creating a Message Object, you need to create using the specific method e.g.

session.createMessage(), session.createObjectMessage(), session.createTextMessage()