I understand that is the ideal way of stopping the CamelContext in normal scenario. Should I be opting the same approach along with, OnException clause?
http://camel.apache.org/exception-clause.html link somewhere says - " If handled is true, then the thrown exception will be handled and Camel will not continue routing in the original route, but break out." What is meant by this, then? I am basically trying to stop the CamelContext on the event of an Exception. Thanks. Regards, Narita -----Original Message----- From: Claus Ibsen [mailto:[email protected]] Sent: Thursday, February 23, 2012 8:00 PM To: [email protected] Subject: Re: OnException - Stopping context On Thu, Feb 23, 2012 at 3:28 PM, Narita Bagchi <[email protected]> wrote: > I want to stop the CamelContext. > Then you have to call stop() on the CamelContext. And mind that it will use graceful shutdown, so read this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html > Thanks. > Regards, > Narita > > -----Original Message----- > From: Claus Ibsen [mailto:[email protected]] > Sent: Thursday, February 23, 2012 7:55 PM > To: [email protected] > Subject: Re: OnException - Stopping context > > On Thu, Feb 23, 2012 at 3:21 PM, Narita Bagchi <[email protected]> > wrote: >> What is the right way of stopping the context, onException occurrence ? >> >> I have tried the following - >> >> 1) handled(true).end(); >> >> 2) continued(false).end(); >> >> 3) handled(true).stop(); >> >> None of the above seems to be working. >> > > What do you want to stop? > > > >> Thanks. >> Narita >> >> ________________________________ >> ***The information transmitted is intended only for the person or >> entity to which it is addressed and may contain confidential and/or >> privileged material. Any review,retransmission,dissemination or other >> use of, or taking of any action in reliance upon, this information by >> persons or entities other than the intended recipient is prohibited. >> If you received this in error, please contact the sender and delete >> the material from any computer.*** > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > > ***The information transmitted is intended only for the person or > entity to which it is addressed and may contain confidential and/or > privileged material. Any review,retransmission,dissemination or other > use of, or taking of any action in reliance upon, this information by > persons or entities other than the intended recipient is prohibited. > If you received this in error, please contact the sender and delete > the material from any computer.*** -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/ ***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***
