camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kanmisc <kango...@gmail.com>
Subject Consuming Files using Timer/Quartz
Date Tue, 28 Dec 2010 14:55:46 GMT

Hi, We have route as below. The files from data/temp need to be send to smtp
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.

Mime
View raw message