camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Taylor <>
Subject Re: Handle first delivery failure differently then all following retries?
Date Thu, 30 Oct 2014 21:28:16 GMT
dunnlow <> writes:

> I'm using Camel 2.10.3 and Spring 3.1 with XML route configuration.   I have
> a transacted route that is getting messages from several different sources
> (and saving them to a database).  When there is an exception writing to the
> database I want to send an alert (a web service) on the FIRST roll back.  In
> other words, when the database is down, I want to keep retying the database,
> but I don't want to send an alert for every retry.
> For JMS I know I can look at the JMSRedelivered header, but for other
> endpoints (ie file) I don't know how to check for a redelivered message.  As
> I understand it, there isn't a way.
> I'm considering pushing every non-JMS message that fails to the JMS queue
> perhaps with a custom header.  If I do that, is there a way to add that
> custom header to the message that is getting rolled back from my JMS queue
> (the first time)?  Is there a better way to implement this?
> Thanks -J
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message