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 By default this plugin is not enabled in ActiveMQ. Options
To enable the TimeStampPlugin add the following to your ActiveMQ Broker configuration. Example: <plugins> <!-- 86,400,000 ms = 1 day --> <timeStampingBrokerPlugin ttlCeiling="86400000" zeroExpirationOverride="86400000"/> </plugins> 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. |