RE: Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
Thank you, now working. -Original Message- From: benny.gi...@gmail.com [mailto:benny.gi...@gmail.com] Sent: Friday, March 25, 2016 3:20 PM To: users@camel.apache.org Subject: Re: Camel reading file periodically Hi, With Noop=true, Camel will set idempotent=true as well, to avoid

Re: Camel reading file periodically

2016-03-25 Thread benny . gi456
Hi, With Noop=true, Camel will set idempotent=true as well, to avoid consuming the same files over and over again. So just set idempotent to false. http://camel.apache.org/file2.html Regards, Benjamin Girstl > Am 25.03.2016 um 13:53 schrieb Kasim Sert (Ibtech-Software Infrastructure) > :

Re: Camel reading file periodically

2016-03-25 Thread Claus Ibsen
Hi It only reads the file the 1st time, the other times the pollEnrich cannot find any new file, and it timeout after 1 second, and the Camel route continue, where you then log an empty message. If you want to pickup files from a directory, then its better to start from file instead of using a ti

Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Why this route reads file for only one time, and what should I do to make it work like excpected ? from("timer://myTimer?period=1000") .log("starting...") .pollEnrich("file:d:/Workspaces/camel/demo-camel/src/ma