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.

Reply via email to