This topic has not yet been written. The content below is from the topic description.
22.1. Message Expiry Using HornetQ Core API, you can set an expiration time directly on the message: // message will expire in 5000ms from now message.setExpiration(System.currentTimeMillis() + 5000); JMS MessageProducer allows to set a TimeToLive for the messages it sent: // messages sent by this producer will be retained for 5s (5000ms) before expiration producer.setTimeToLive(5000); Expired messages which are consumed from an expiry address have the following properties: _HQ_ORIG_ADDRESS a String property containing the original address of the expired message _HQ_ACTUAL_EXPIRY a Long property containing the actual expiration time of the expired message