camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bingliu <liubing1...@gmail.com>
Subject How throw Exception to Up route
Date Wed, 24 Nov 2010 02:36:31 GMT

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?
-- 
View this message in context: http://camel.465427.n5.nabble.com/How-throw-Exception-to-Up-route-tp3277800p3277800.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message