This content has been marked as final. Show 2 replies
The behaviour of the getJMSExpiration() method on javax.jms.Message is defined in the usual place:
It is as you describe.
If you want to pass the time-to-live (or any other) value to the consuming client the easiest way to do this is to set a custom message property:
before the producing client sends the message, set a message property called, say "myTTL" to whatever TTL value you are using:
the consuming client can extract this value using:
long timeToLive = message.getLongProperty("myTTL");
Thx for the achnowledgement that I understood the doc wel. The link is indeed the documentation that I have read about this.
Also the sugested solution is one thing that I had in mind.