Hi, 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 ([email protected]) wrote: Hello, 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. <route> <from uri="activemq:in"/> <doTry> <throw new="sql.Exception"/> <doCatch> <exception>java.sql.SQLException</exception> <choice> <when> <simple>${header.Reported} == null</simple> <setHeader headerName="Reported"> <simple>true</simple> </setHeader> <multicast> <to uri="activemq:NOTIFY"/> <to uri="activemq:in"/> </multicast> </when> <otherwise> <to uri="activemq:in"/> </otherwise> </choice> </doCatch> </doTry> </route> Any suggestion will be appreciated. Cecilio. -- View this message in context: http://camel.465427.n5.nabble.com/On-exception-notify-first-error-tp5767385.html Sent from the Camel - Users mailing list archive at Nabble.com.
