Hi Ali,
The route based exceptions are working fine for us, following is the
example. Not sure but I have a suggestion for you, can you try catching a
generic Exception, it may be due to different exception being raised.
<route id="bl-otc-pattern">
<from uri="direct:blotc"/>
<onException>
<exception>VoltException</exception>
<handled>
<constant>true</constant>
</handled>
<log message="BL ROUTE HANDLER ${in.headers} ${body}" />
<bean method="blExceptionHandler" ref="voltException" />
</onException>
<bean method="checkRule" ref="rulesProcessor"/>
<bean method="embedVoltTxnId" ref="transactionIdentifier"/>
<bean method="process" ref="ampOtcProcessor"/>
<setHeader headerName="type">
<constant>postTxn</constant>
</setHeader>
<bean method="putTxnToDB" ref="dbProcessor"/>
<bean method="commToCust" ref="commProcessor"/>
</route>
--
View this message in context:
http://camel.465427.n5.nabble.com/Exception-doesn-t-get-caught-in-the-route-tp5733381p5733475.html
Sent from the Camel - Users mailing list archive at Nabble.com.