camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammad Ichsan <ich...@gmail.com>
Subject How to propagate exception?
Date Wed, 10 Mar 2010 11:28:42 GMT
Hi All

Based on the following routes:

<route>
	<from uri="direct:message/>

	<onException>
		<exception>my.fragile.Exception</exception>
		<to uri="mock:isItPossibleToCatchHere"/>
	</onException>
	
	<to uri="direct:methodInvocation"/>
</route>

<route>
	<from uri="direct:methodInvocation"/>
	<to uri="bean:fragileBean?method=invokeWithPossibleException"/>
</route>

Is it possible to use the <onException> tag there?

Thanks

-- 
~The best men are men who benefit to others
http://michsan.web.id

Yang berkualitas memang beda rasanya!
http://rizqi-cookies.com

Mime
View raw message