Hi,

you can use a second route with a timer and set the timer property repeatCount to 1, so the timer will only fire once when the route is started. Have a look here:
http://camel.apache.org/timer.html

regards Marco

Am 28.11.2014 13:54, schrieb dermoritz:
I have a route using jdbc component to fetch some data from db.

so my idea is:
from("quartz:<cron expression for 3am>").to(jdbc:...)

My problem is that "fireNow" seems only to work for simple timer. Is there
an easy way to fire the route once at start (after first run this route
triggers start of other routes.)?





--
View this message in context: 
http://camel.465427.n5.nabble.com/Starting-a-rout-once-on-start-and-then-always-at-3am-tp5759767.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Reply via email to