Hi,
CamelContext supports to set the ErrorHandler like this
<camelContext errorHandlerRef="errorHandler"
xmlns="http://camel.apache.org/schema/spring">
...
</camelContext>
On 11/24/10 10:36 AM, Bingliu wrote:
Hi, I have some question.Now I use camel with spring. I definition two routes
called Route1 and Route2.Look this:
<camel:route id="route1" errorHandlerRef="handler">
<camel:from uri="direct:route1"/>
<camel:to uri="direct:rouet2"/>
</camel:route>
<camel:route id="rouet2">
<camel:from uri="direct:route2"/>
<camel:bean ref="someBean"/>
</camel:route>
I use a error handler on Route1.Now route2 throw an Exception.How can I
catch the Exception on Route1?How can I use the route1's errorHander catch
the Exception?
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang