camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <r...@fusesource.com>
Subject Re: Delay route start
Date Fri, 04 May 2012 18:09:15 GMT
Hi,

Yes. You should look into defining a SimpleScheduledRoutePolicy on your
route.
See [1], although the default values and meanings of each attribute seem to
be a bit clearer here [2].

You should set the routeStartDate attribute to current time + delay you
require, and keep the repeatCount and interval at 0.

[1] http://camel.apache.org/simplescheduledroutepolicy.html.
[2]
http://fusesource.com/docs/router/2.5/eip/BasicPrinciples-ScheduledRoute-Simple.html

Regards,

*Raúl Kripalani*
Principal Consultant | FuseSource Corp.
raul@fusesource.com | fusesource.com <http://www.fusesource.com/>
skype: raul.fuse | twitter: @raulvk <http://twitter.com/raulvk>,
@fusenews<http://twitter.com/fusenews>

<http://twitter.com/fusenews>

On 4 May 2012 18:03, PhilBurress <nmcloughlin@amig.com> wrote:

> Is there a way to run with autoStartup enabled but have the route wait for
> a
> specified period of time before starting to consume messages?
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Delay-route-start-tp5686442.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message