server every 5 mins. But this is not happening here. Is anything missed in
the route here? I have read few threads related to this but no luck.
from("quartz://myTimer?trigger.repeatInterval=300000&trigger.repeatCount=-1").
from("file:data/temp?noop=true").
when(header("CamelFileName").isEqualTo("template1.html")).
setHeader("Message-ID",constant("<SEMA-CR-"+rand.nextLong()+"@yy>")).
to("smtp://localhost:9819?to="myEmailID").
bean(FileValidator.class, "processFiles").
when(header("CamelFileName").isEqualTo("template2.html")).
setHeader("Message-ID",constant("<SEMA-CR-"+rand.nextLong()+"@yy>")).
to("smtp://localhost:9819?to="myEmailID").
bean(FileValidator.class, "processFiles");
Thanks in advance.
--
View this message in context: http://camel.465427.n5.nabble.com/Consuming-Files-using-Timer-Quartz-tp3320330p3320330.html
Sent from the Camel - Users mailing list archive at Nabble.com.