Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Daily timer to fire at a specific time

$
0
0
Hello,
What is the proper way to configure a timer that fires every day at 10 AM?

I have this, which works, but it seems artificial to have to specify a date
and sometimes the service seems to get confused on redeploy and fire
repeatedly if I forget to update the date.
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from
uri="timer://ncbidnld?fixedRate=true橪;period=24hours橪;time=2014-08-27
10:00:00"/>

This throws a ParseException: Unparseable date:
<from
uri="timer://ncbidnld?fixedRate=true橪;period=24hours橪;time=10:00:00"/>

It's not obvious from the documentation page what the proper alternative
might be.

This is Camel 2.13.2 within ServiceMix 5.1.1.

Thanks,
Scott

Viewing all articles
Browse latest Browse all 5648

Trending Articles