Hi, maybe these examples will help?
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html http://blog.nanthrax.net/2011/08/use-camel-cxf-and-karaf-to-implement-batches/ Kind regards Maruan Sahyoun Am 21.03.2013 um 11:41 schrieb Bilgin Ibryam <bibr...@gmail.com>: > When the app is running in a container as war or kar the container will > stop the Camel application gracefully. But in my case I run the camel > application as stand alone app with: java -jar camel-app.jar ... How do I > stop in this case the camel app gracefully? One thing that comes into mind > is to have a Camel route that can stop the context , and somehow trigger > that route (may be a rest endpoint, or file consumer route...) > Is there any simpler way? > > Bilgin > > On 21 March 2013 07:28, Claus Ibsen <claus.ib...@gmail.com> wrote: > >> Hi >> >> Can you provide more detail. What server do you use? And how do you >> deploy the application. >> >> If its a web application (WAR) then see here >> http://camel.apache.org/tutorial-on-using-camel-in-a-web-application.html >> >> >> >> >> On Wed, Mar 20, 2013 at 10:40 PM, <ganeshkumar.kanaga...@barclays.com> >> wrote: >>> Hi, >>> Have got a basic question. >>> >>> I would like to understand the prescribed method of starting and >> stopping the Camel-spring application? >>> >>> We are planning to have this application on the standalone, so need to >> understand how to start and stop after deploying into the server. >>> >>> Any model script will help us. >>> >>> Thanks >>> Ganesh >>> >>> _______________________________________________ >>> >>> This message may contain information that is confidential or privileged. >> If you are not an intended recipient of this message, please delete it and >> any attachments, and notify the sender that you have received it in error. >> Unless specifically stated in the message or otherwise indicated, you may >> not uplicate, redistribute or forward this message or any portion thereof, >> including any attachments, by any means to any other person, including any >> retail investor or customer. This message is not a recommendation, advice, >> offer or solicitation, to buy/sell any product or service, and is not an >> official confirmation of any transaction. Any opinions presented are solely >> those of the author and do not necessarily represent those of Barclays. >>> >>> This message is subject to terms available at: >> www.barclays.com/emaildisclaimer and, if received from Barclays' Sales or >> Trading desk, the terms available at: >> www.barclays.com/salesandtradingdisclaimer/. By messaging with Barclays >> you consent to the foregoing. Barclays Bank PLC is a company registered in >> England (number 1026167) with its registered office at 1 Churchill Place, >> London, E14 5HP. This email may relate to or be sent from other members of >> the Barclays group. >>> >>> _______________________________________________ >> >> >> >> -- >> Claus Ibsen >> ----------------- >> Red Hat, Inc. >> FuseSource is now part of Red Hat >> Email: cib...@redhat.com >> Web: http://fusesource.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen >>