0

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?

Raj
  • 115
  • 8
  • Can you share with us how your ftp endpoint looks like – dimitrisli Dec 02 '16 at 22:39
  • 1
    Is 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

0 Answers0