.to("file:target/reports/?fileName=sync.txt");
From: mikes300 [mikes...@yahoo.com]
Sent: Friday, July 25, 2014 11:38 PM
To: users@camel.apache.org
Subject: RE: Camel Java routes using Timer firing only once
Well that turns out to be very interes
Well that turns out to be very interesting. Setting the timer to 1s and
sleep to 30s, it indeed runs the route 30 times! I am not sure I could
explain why it does that as I would think the route starting would include
running the timer continually, independent of code in the bean outside the
rout
From: mikes300 [mikes...@yahoo.com]
Sent: Thursday, July 24, 2014 11:30 PM
To: users@camel.apache.org
Subject: RE: Camel Java routes using Timer firing only once
*Hi Ravi,*
I tried, but same results. Runs once but not again. Here are the log
entries for it. I even
*Hi Ravi,*
I tried, but same results. Runs once but not again. Here are the log
entries for it. I even tried omitting the context.stop, no success...
7:32:12,460 INFO [org.apache.camel.impl.DefaultCamelContext] (default
task-4) Apache Camel 2.13.1 (CamelContext: camel-1) is starting
07:32:12,4
Body of timer is null hence it will fail on the first message.
Try following and it will work as expected. You can use timer without spring.
from("timer://foo?fixedRate=true&period=1000").setBody(body().append("Time is "
+ new Date())).to("file:target/reports/?fileName=sync.txt"