Let me ask you specific question.

I have below component in my camel route.


*<process ref="prepareSshProcessor" id="sshPrepare" />
<to uri="ssh://root:xx...@myserver.com:22" />
<process ref="sshResultProcessor" id="sshResult" />*

Once the ssh execute we get the result in "sshResultProcessor"; After that
on some condition we throws custom exception. 
What happen here only "sshResultProcessor" retries 2 using redeliveryPolicy
. But we want to retry from ssh.

Can you have any idea, how to do it ?

FYI...here is the onException block

<onException>
                        <exception>com.exception.MyException
                        </exception>
                        <redeliveryPolicy redeliveryDelay="1000"
                                maximumRedeliveries="2" 
retryAttemptedLogLevel="WARN" />
                        <continued>
                                <constant>true</constant>
                        </continued>
                        <process ref="exceptionProcessor" id="exceptionHandler" 
/>
                </onException>


/Sarfaraj



--
View this message in context: 
http://camel.465427.n5.nabble.com/redeliveryPolicy-How-can-we-retry-from-start-of-the-route-in-case-of-exception-occurred-inbetween-of-tp5717848p5717912.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to