camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Recovery in activemq
Date Thu, 06 Sep 2007 13:53:33 GMT
On 9/6/07, Neil Thorne (work) <> wrote:
> Sorry guys,
> scratch these comments. I just read the Camel TOE section properly and I'm
> using a Spring JmsTransactionManager to create transactional producers and
> consumers by default:


I was gonna say, recovered messages should be the same!

You can use the JMSRedelivered headers to know if a message has been
redelivered before or not...

Also ActiveMQ uses a counter: JMSXDeliveryCount when a message has
been redelivered to keep track of the number of times its been

> I still would like a neat way of finding out if this message is "recovered"
> though, but both messages are the same.

BTW checking for redelivery flag is a nice way to optimise away
duplicate detection code...

> We're currenty thinking of going with an idempotent receiver that uses the
> messageIds above.

Sounds good to me.


View raw message