you can split your original route into three ones like that:
from("direct:process")
.to(jdbc)
.whatever;
from("timer:myTimer? repeatCount=1")
.to("direct:process");
from("quarz:cron")
.to("direct:process");
that way the direct:process route gets triggerd by the timer and the
quarz routes.
regards
Am 28.11.2014 15:13, schrieb dermoritz:
you mean i should create 2 routes:
from(timer:repeateOnce).to(jdbc)
and
from(timer:cronExpr).to(jdbc)
?
thats not very beautiful but a good option.
What about (came to mind in meanwhile):
from(timer:cronExpr).to(direct:startNow).to(jdbc:)
does this work?
--
View this message in context:
http://camel.465427.n5.nabble.com/Starting-a-rout-once-on-start-and-then-always-at-3am-tp5759767p5759769.html
Sent from the Camel - Users mailing list archive at Nabble.com.