1 of 1 people found this helpful
1. The system will set you the original address, but not the original queue name. Perhaps that would be a good thing to add as a property.
2. You should manage your own data through the properties. the message ID will still exist on the queue if there is another queue with the same message.
3. That's a simple System.currentTimeMillis(); Easy to convert back to time... look on javadoc.
long actualExpiryTime = System.currentTimeMillis();
1. add as a property by the producer? Who would copy this to the message sent to the ExpiryQueue?
2. assuming there are no more messages with this id - I know nothing of the original message, right?
3. Tried this: new Date(actualExpiryTime) and it works. Previously it failed on "number out of range" or something like that.
So - what I'm basically missing here is the original subscriber Id/Name. Any suggestions?
I don't see the original subscription on the move-to-expire either. That's what I said that maybe it makes sense to add it as a feature request.
Open a JIRA and I will make sure the move will add the original core queue name with a property.