I've done this with http://camel.apache.org/properties.html camel-properties
...
basically this...
PropertiesComponent pc = new PropertiesComponent();
pc.setLocation("classpath:myprops.properties");
context.addComponent("properties", pc);
from("timer://springTimer?fixedRate=true&period={{fetchTime}}")
.log("test");
bjacobs wrote:
>
> I am aware the syntax for the timer is:
>
> from uri="timer://springTimer?fixedRate=true&period=2000"
>
> But I want to make my period a variable. Something like:
>
> from uri="timer://springTimer?fixedRate=true&period=${fetchTime}"
>
> Is there any way to do this? The above doesn't work because it thinks
> "$(fetchTime)" is a String and it expects a long.
>
-----
Ben O'Day
IT Consultant -http://consulting-notes.com
--
View this message in context:
http://camel.465427.n5.nabble.com/Timer-period-tp4488758p4489237.html
Sent from the Camel - Users mailing list archive at Nabble.com.