Hi,

What will happen if an error occur in the finally block execution defined
here after ?
Is the rollback put at the right place ?

<route>
    <from uri="direct:start"/>
    <transacted/>
    <doTry>
        <process ref="processorFail"/>
        <to uri="mock:result"/>
        <doCatch>
            <!-- catch multiple exceptions -->
            <exception>java.io.IOException</exception>
            <exception>java.lang.IllegalStateException</exception>
            <to uri="mock:catch"/>
        </doCatch>
        <doFinally>
            <to uri="bean:finally"/> // The call to this bean generates an error
            <rollback/> // Is it the right place of the rollback ?????????
        </doFinally>
    </doTry>
</route>

Regards,


Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Reply via email to