camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Thread.sleep() equivalent using Spring?
Date Tue, 18 May 2010 04:42:57 GMT
On Tue, May 18, 2010 at 2:39 AM, ankelee <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Apache Camel Committer

Author of Camel in Action:
Open Source Integration:

View raw message