ActiveMQ Messages support the following default message properties:
Message attributes accessed as properties:
| Property Name |
type |
default value |
description |
| JMSDestination |
javax.jms.Destination |
set by the producer |
Destination used by the producer |
| JMSReplyTo |
javax.jms.Destination |
null |
user defined |
| JMSType |
String |
empty |
user defiend |
| JMSDeliveryMode |
int |
DeliveryMode.PERSISTENT |
indicator if messages should be persisted |
| JMSPriority |
int |
4 |
value from 0-9 (n.b. priorities aren't currently supported) |
| JMSMessageID |
String |
unique |
unique identifer for the message |
| JMSTimestamp |
long |
time the message was sent |
time in milliseconds |
| JMSCorrelationID |
String |
null |
user defined |
| JMSExpiration |
long |
0 |
time in milliseconds to expire the message - 0 means nerver expire |
| JMSRedelivered boolean |
false |
true if the message is being resent to the consumer |
JMS Defined:
| Property Name |
type |
default value |
description |
| JMSXDeliveryCount |
int |
0 |
number of attempts to send the message |
| JMSXGroupID |
String |
null |
identity of the message group |
| JMSXGroupSeq |
int |
0 |
sequence number of the message |
| JMSXProducerTXID |
String |
null |
transaction identifier |
ActiveMQ Defined:
| Property Name |
type |
default value |
description |
| JMSActiveMQBrokerInTime |
long |
0 |
timestamp (milliseconds) for when the message arrived at the broker |
| JMSActiveMQBrokerOutTime |
long |
0 |
timestamp (milliseconds) for when the message left the broker |