-
1. Re: How to Audit expired messages from durable subscriber?
clebert.suconic Feb 6, 2013 3:26 PM (in response to yairogen)1 of 1 people found this helpful1. 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.
if (expiry)
{
long actualExpiryTime = System.currentTimeMillis();
putLongProperty(Message.HDR_ACTUAL_EXPIRY_TIME, actualExpiryTime);
}
-
2. Re: How to Audit expired messages from durable subscriber?
yairogen Feb 7, 2013 2:38 AM (in response to clebert.suconic)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?
Thanks,
Yair
-
3. Re: How to Audit expired messages from durable subscriber?
clebert.suconic Feb 8, 2013 10:07 AM (in response to yairogen)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.
-
4. Re: How to Audit expired messages from durable subscriber?
clebert.suconic Feb 8, 2013 3:24 PM (in response to clebert.suconic)Open a JIRA and I will make sure the move will add the original core queue name with a property.
-
5. Re: How to Audit expired messages from durable subscriber?
yairogen Feb 11, 2013 2:25 AM (in response to clebert.suconic)