There is a middleware in between of two other software components. In the middleware I\'m routing Apache ActiveMQ messages by Apache
@Amin Ralf is right adding more to his reply--- there may be two reasons the process stopped 1 - TTL expired 2 - Time between client and server is out of sync.
If your issue is related to 1 then set header - "JMSExpiration"
If your issue is related to 2 - (copy pasted from another stackoverflow post)
then the clocks between client - broker need to be in sync, for the expiry to work properly. If the clocks is not in sync, then the expiry set from the client, may already be expired when the message is received on the broker. Or the client time is ahead of the broker, so the expiry is longer than the 10 secs.
To fix this by realigning the time, to be broker based only. See http://activemq.apache.org/timestampplugin.html