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.StreamMessage
javax.jms.MapMessage
org.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=false
any stream message you create will be encoded as a list message.Example:StreamMessage msg = jmsSession.createStreamMessage();
For code examples, refer to this sample code.