8.3. JMS messages

JMS provides different message types. Each contains some information about its content.

The message types defined in JMS are:

  • BytesMessage

  • MapMessage

  • ObjectMessage

  • StreamMessage

  • TextMessage

JMS messages are comprised of three parts:

  • Header

    Header fields contain information used by the provider for routing and identifying the messages, as well as information that can used by the client.

  • Properties

    In addition to the fields in the header, JMS messages provide a facility for adding optional header fields to a message. These properties can be categorized as:

    - Application-specific properties, which are used by clients to add processing-specific information for clients processing the messages

    - Standard properties, which are JMS-specific ...

Get MQSeries Programming Patterns now with O’Reilly online learning.

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