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 <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
