I have a requirement to read a file continuously from an FTP location and write to some topic(for eg:Kafka) using Apache Camel. I am able to read the file in the startup and write to the topic. Is there a way in Camel to read the file continuously from a folder whenever a new file come in to that location?
Asked
Active
Viewed 324 times
0
-
Can you share with us how your ftp endpoint looks like – dimitrisli Dec 02 '16 at 22:39
-
1Is it a new file with a different name, or is the old file appended with new data, or what? But yeah sure the FTP component can keep reading new files/changed files etc. See the idempotent / readLock options. – Claus Ibsen Dec 03 '16 at 11:50
-
It worked after using idempotent option – Raj Dec 04 '16 at 08:18