camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ext2" <>
Subject try-catch conflict with default-error-handler
Date Fri, 26 Mar 2010 06:14:20 GMT
Follow route use a default-error-handler for the route, and also defined  a
custom exception handle logic using try-catch-pattern. 

But if the "myProcessRaiseError" raised exception the catch-clause cannot be
invoked; Why? Is it camel's bug?

      <from uri="ws:... "/>
	 <bean ...>
      		<simple>${body} == 'firstChoice'</simple>
		      <bean ref="myProcess" />
		      <bean ref="myProcessRaiseError"/>
			..some error handler...
     <process ...>

View raw message