Show Table of Contents
20.8. JMS ListMessage
The JMS
ListMessage type is available for sending lists.
On the receiver side, List messages are exposed via 3 interfaces:
javax.jms.StreamMessagejavax.jms.MapMessageorg.apache.qpid.jms.ListMessage
On the sender side, List messages can be sent two ways:
org.apache.qpid.jms.ListMessage- by creating it viacreateListMessage()inorg.apache.qpid.jms.Session.Example:ListMessage msg = ((org.apache.qpid.jms.Session)ssn).createListMessage();
- If you set
-Dqpid.use_legacy_stream_message=falseany stream message you create will be encoded as a list message.Example:StreamMessage msg = jmsSession.createStreamMessage();
For code examples, refer to this sample code.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.