Jakarta Messaging Header Fields

EMS supports the predefined Jakarta Messaging header fields. For more information, see Jakarta Messaging Message Header Fields.

Import

When translating an incoming Kafka message into an EMS message, the EMS server searches the Kafka message’s headers for any keys matching Jakarta Messaging header field names. Each matching header’s key/value is used to set the corresponding Jakarta Messaging header field in the translated EMS message.

Note:  There are two exceptions to this behavior:
  • If the incoming Kafka message does not contain a header with key JMSTimestamp, the EMS server will set the translated EMS message’s JMSTimestamp to the current time.

  • The JMSReplyTo Jakarta Messaging header is never set in the translated EMS message.

Export

The EMS server converts each Jakarta Messaging header field and its value into a key/value pair (all header field values are converted to strings) and sets them as headers in the outgoing Kafka message.