Jakarta Messaging Message Bodies
A Jakarta Messaging message has one of several types of message bodies, or no message body at all.
The types of messages are described in the following table.
Message Type | Contents of Message Body |
---|---|
Message | This message type has no body. This is useful for simple event notification. |
TextMessage | A
java.lang.String .
|
MapMessage |
A set of name/value pairs. The names are
When EMS is exchanging messages with Rendezvous, you can generate a series of nested MapMessages, as described in EMS Extensions to Jakarta Messaging Messages. |
BytesMessage | A stream of uninterrupted bytes. The bytes are not typed; that is, they are not assigned to a primitive data type. |
StreamMessage |
A stream of primitive values in the Java programming language. Each set of values belongs to a primitive data type, and must be read sequentially. When EMS is exchanging messages with Rendezvous, you can generate a series of nested StreamMessages, as described in EMS Extensions to Jakarta Messaging Messages. |
ObjectMessage | A serializable object constructed in the Java programming language. |