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:

jms_set_general_property("step1","JMS_MESSAGE_TYPE","BytesMessage");

For more information, see the Function Reference.