20.8. JMS ListMessage


The JMS ListMessage type is available for sending lists.
On the receiver side, List messages are exposed via 3 interfaces:
  1. javax.jms.StreamMessage
  2. javax.jms.MapMessage
  3. org.apache.qpid.jms.ListMessage
On the sender side, List messages can be sent two ways:
  1. org.apache.qpid.jms.ListMessage - by creating it via createListMessage() in org.apache.qpid.jms.Session.
    Example:
    ListMessage msg =  ((org.apache.qpid.jms.Session)ssn).createListMessage();
  2. 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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.