camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Block <>
Subject Re: On exception notify first error.
Date Fri, 22 May 2015 03:10:09 GMT

You can use a combination of the retryWhile property of onException to allow for indefinite
retrying. In addition, you can also use the onRedelivery property to define a custom process
to perform action prior to the redelivery of a message. A ProducerTemplate can be used to
send to a downstream process.

- Andy

Andrew Block

On May 21, 2015 at 9:02:33 AM, Cecilio Alvarez ( wrote:


is there a way on the on exception or in the error handler to send a message  
one time and keep retrying?  

Something like this but with error handler or on exception.  

<from uri="activemq:in"/>  
<throw new="sql.Exception"/>		
<simple>${header.Reported} == null</simple>  
<setHeader headerName="Reported">  
<to uri="activemq:NOTIFY"/>  
<to uri="activemq:in"/>  
<to uri="activemq:in"/>  

Any suggestion will be appreciated.  


View this message in context:
Sent from the Camel - Users mailing list archive at  

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message