Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 727F9992A for ; Wed, 21 Mar 2012 07:55:15 +0000 (UTC) Received: (qmail 74003 invoked by uid 500); 21 Mar 2012 07:55:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 73902 invoked by uid 500); 21 Mar 2012 07:55:14 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 73891 invoked by uid 99); 21 Mar 2012 07:55:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 07:55:14 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 07:55:09 +0000 Received: by lbon3 with SMTP id n3so805628lbo.32 for ; Wed, 21 Mar 2012 00:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6s5F8XXtM/KqKW8QdjnI7+/szq+T4G+Zu9wzK+6CFPA=; b=eWrGRVrMoORFYzqk3r+zurRNb3iPfHvq1aCytvo4FA0Bepg2bncpGelsRCrgjXplPC /FfcxyFN1u2zOXTQHOEJi0KJrWRzgD4WIKR92sOMRAs8q9HvqrA3QleZIdnGSepQfnLv +bX3wztXTDVSardpSufpxpVHH0XDUNTstT5dlZmdvun5tsYeAzWIhaMtv5bujUb2xLoo 72A6tkq3iyUbtxBDPbTChaCuuzqW2Nt59rES65os5HxeZ3hIwtnHNtwKCPo1pvpmliRi vUwjQ95EVSXhfcl350gLP8KtR+Qu91sj+w+EgGuiXPeD/rZ7gXZEPQLRtr0HpXvSJPWm lLsQ== Received: by 10.112.83.163 with SMTP id r3mr1079762lby.80.1332316488878; Wed, 21 Mar 2012 00:54:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.107.106 with HTTP; Wed, 21 Mar 2012 00:54:28 -0700 (PDT) In-Reply-To: <1332275786471-5581162.post@n5.nabble.com> References: <1332197135628-5578588.post@n5.nabble.com> <1332217684714-5579028.post@n5.nabble.com> <1332275786471-5581162.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 21 Mar 2012 08:54:28 +0100 Message-ID: Subject: Re: Restarting the Camel route To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi See this FAQ about stopping a route from a route http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html Its improved over the book example as there is some corner cases, that the FAQ approach handles better. On Tue, Mar 20, 2012 at 9:36 PM, Frank wrote: > Hi, > > intercept().bean(DoAsIWish.class); > from("direct:start").routeId("myRoute) > .bean(BeanA.class) > .bean(BeanB.class) > .bean(BeanC.class) > .bean(BeanD.class) > .to("seda:out") > .to("log:print"); > producerTemplate.sendBody("direct:start", outputString); > consumerTemplate.receiveBody("seda:out").toString(); > > When I am trying to stop my route using example of camel context stop method > in Chapter 13, I am getting the following exception. > > org.apache.camel.CamelExecutionException: Exception occurred during > execution on the exchange: Exchange[Message: Somemessage] > > Can you suggest me how to remove the CamelExecutionException. > > Thanks, > Frank > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Restarting-the-Camel-route-tp5578588p5581162.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/