How do you set the TTL for a message when using Java DSL?
I have something like this:
... from (\"timer:something?delay=3000&period=15000\") ...
I ended up setting the JMSExpiration header field of the messages being created similar to the following
.setHeader("JMSExpiration", constant(System.currentTimeMillis() + 1000))
We are using Apache ActiveMQ 5.7.