HornetQ version : 2.2.14.Final
I have a setup; in which Messages are sent to a “main.queue” there is a non-exclusive divert configured between “main.queue” and “divert.queue”, so all messages from “main.queue” are copied to “divert.queue”
In my client I set “expiration” time in message header , send message to “main.queue”, but when these messages are copied to “divert.queue”, I found that “expiration” is reset to “0” by the “Divert” ( which means they will never expire from “divert.queue”),
Code Reference: HornetQ-2.2.14.final
The divert implementation shows
DivertImpl.route() -> ServerMessageImpl.setOriginalHeaders()
setExpiration(0)
-Dhaval
can you try with the latest release and if it is still broken raise a jira please?