JMS message structure

Each JMS message is composed of:

  • Header. contains standard attributes (Correlation ID, Priority, Expiration date).

  • Properties. custom attributes.

  • Body. text or binary information.

JMS can be sent with several message body formats. Two common formats are TextMessage and BytesMessage.

To override the default behavior, use a jms_set_general_property function before sending the message. Set the JMS_MESSAGE_TYPE property to TextMessage, BytesMessage, or Default.

For example:


For more information, see the Function Reference (select the relevant version).