On Tue, May 18, 2010 at 2:39 AM, ankelee <[email protected]> wrote: > > Hi > > I'm trying to transition from using Java DSL in a standalone Java setup to > using Spring DSL routes deployed in Spring. So far I have a basic route > configured and Camel generate the route succesfully but I'm not sure if it > get's started, and if it does if it has enough time to complete the route > before the program terminates. > > When starting a context from a main method via. standard Java we use > Thread.sleep() to ensure that the route has time to finish - do we need to > do something similar when running the routes in Spring? > --
Yeah you can use Thread sleep also if you want to stop your app after X time. in camel-spring there is a Main class which you can use. It has options to terminate automatic after X time. > View this message in context: > http://old.nabble.com/Thread.sleep%28%29-equivalent-using-Spring--tp28590338p28590338.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
