You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gvvenkat <Gv...@yahoo.com> on 2013/05/08 23:03:11 UTC

when an exception happens, I want to shut down the routes..

If an exception occurs while processing, I would like to invoke the process
of shutting down the routes in the context. Can you please tell me, if this
can be achieved in camel. If so, an example will be great help for me. 

Thanks
gvvenkat



--
View this message in context: http://camel.465427.n5.nabble.com/when-an-exception-happens-I-want-to-shut-down-the-routes-tp5732199.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: when an exception happens, I want to shut down the routes..

Posted by Willem jiang <wi...@gmail.com>.
Hi  

You can use ErrorHandler[1] with some codes here[2]

[1]http://camel.apache.org/error-handler.html
[2]http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Thursday, May 9, 2013 at 5:03 AM, Gvvenkat wrote:

> If an exception occurs while processing, I would like to invoke the process
> of shutting down the routes in the context. Can you please tell me, if this
> can be achieved in camel. If so, an example will be great help for me.  
>  
> Thanks
> gvvenkat
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/when-an-exception-happens-I-want-to-shut-down-the-routes-tp5732199.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).