camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Use property placeholders in CronScheduledRoutePolicy
Date Sat, 28 Sep 2013 08:48:49 GMT
Hi

You can use the  resolvePropertyPlaceholders from camelContext.

Or use the @PropertyInject from Camel 2.12 to inject the property to a
getter/setter on the java bean (eg to do dependency injection)

On Thu, Sep 26, 2013 at 5:43 PM, berdoni <berdoni@gmail.com> wrote:
> Hi,
>
> I use CronScheduledRoutePolicy to schedule the execution on a File route.
>
> CronScheduledRoutePolicy routePolicy = new CronScheduledRoutePolicy();
>
> routePolicy.setRouteStartTime("0 0/5 * * * ?");
> routePolicy.setRouteStopTime("59 0/2 * * * ?");
>
> Is it possible to use property placeholders and load the cron values from a
> property file
>
> e.g.
> routePolicy.setRouteStartTime({{routeStartTime.value}});
>
> or this is applicable only in parts of the endpoint URI's?
>
> thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Use-property-placeholders-in-CronScheduledRoutePolicy-tp5740264.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message