camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmanchanda75 <lmanchand...@gmail.com>
Subject Re: Exception doesn't get cauhgt in the route
Date Thu, 30 May 2013 09:51:01 GMT
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.

Mime
View raw message