camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Discard Obsolete Messages After Redelivery
Date Tue, 26 May 2015 07:13:48 GMT

I think you can consider to write a filter which just tracks the last timestamp (you may need
a lock when changing the timestamp).

Willem Jiang

Red Hat, Inc.
Blog: (English) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On May 25, 2015 at 3:49:17 AM, noone100 ( wrote:
> I'm dealing with messages, that contain updated values for a certain ID. If
> such a message can't be processed, it gets redelivered by the activemq
> broker. In the mean time an other message with newer values for the same id
> might be enqueued. Since the redelivery delay is quite long it might happen
> that the newer message gets processed before the older and the whole process
> isn't in the correct order anymore. In that case, the older message should
> get discarded to avoid outdated values to override newer values. I thought
> about an idempotent consumer, but it does not seem to solve the problem
> because it only tracks IDs but not timestamps. Any help would be
> appreciated.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message