The TimeStampPlugin is a Broker interceptor which updates a JMS Client's time stamp on the message with a broker time stamp. This can be useful when the clocks on client machines are known to not be correct and you can only trust the time set on the broker machines.
Enabling this plugin will break JMS compliance since the time stamp that the producer sees on the messages after as
send() will be different from the time stamp the consumer will observe when he receives the message.
When not zero, this value (in ms) limit the expiration time.
When not zero this value (in ms) will override the expiration time for messages that do not have an expiration already set.
To enable the TimeStampPlugin add the following to your ActiveMQ Broker configuration.
Broker/Consumer Clock Synchronization
When the consumer’s local clock is running ahead of the broker’s local clock then messages might not be consumed by your consumer when this plug-in is loaded with default configuration as the consumer could perceive the messages as already expired.
If the clock difference between broker and consumer is greater than the message expiration time and if the consumer’s clock is running ahead, then set
See the following blog post for more details.