Message Types

There are five standard JMS message types, and the WebLogic JMS implementation defines an additional XML message type.

JMS Message Types

Table 7.3 lists the JMS message types.

Table 7.3. JMS Message Types
Message Type Description
StreamMessage This message type consists of a serialized stream of objects. The objects must be read from the stream in the order they were written.
MapMessage A message consisting of name/value pairs. Like a hash table, these are unordered, and each name must be unique within the map.
TextMessage A message type to hold a string.
ObjectMessage A message that holds a serialized object.
BytesMessage A raw stream of bytes. Clients who need complete control over the raw message format use this message type. ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.