Menu Search

3.3. Java JMS Message Properties

The following table shows how Qpid Messaging API message properties are mapped to AMQP 0-10 message properties and delivery properties. In this table msg refers to the Message class defined in the Qpid Messaging API, mp refers to an AMQP 0-10 message-properties struct, and dp refers to an AMQP 0-10 delivery-properties struct.

Table 3.4. Java JMS Mapping to AMQP 0-10 Message Properties

Java JMS Message PropertyAMQP 0-10 Property[a]
JMSMessageIDmp.message_id
qpid.subject[b]mp.application_headers["qpid.subject"]
JMSXUserIDmp.user_id
JMSReplyTomp.reply_to[c]
JMSCorrelationIDmp.correlation_id
JMSDeliveryModedp.delivery_mode
JMSPrioritydp.priority
JMSExpirationdp.ttl[d]
JMSRedelivereddp.redelivered
JMS Propertiesmp.application_headers
JMSTypemp.content_type

[a] In these entries, mp refers to an AMQP message property, and dp refers to an AMQP delivery property.

[b] This is a custom JMS property, set automatically by the Java JMS client implementation.

[c] The reply_to is converted from the protocol representation into an address.

[d] JMSExpiration = dp.ttl + currentTime