0

I was using File Watcher to monitor files in local. Is there any way to monitor files in FTP. I have heard Spring Integration. Does Spring integration solve the issue.

TheUnborn
  • 27
  • 3

1 Answers1

0

It does, but that’s not an event handling since there is no listener hook in the remote files protocols. So, we do polling periodically for changes in the remote dir.

See more info in docs : https://docs.spring.io/spring-integration/reference/html/ftp.html#ftp-inbound

Artem Bilan
  • 113,505
  • 11
  • 91
  • 118
  • Can you share a example code to explain the same. – TheUnborn Aug 07 '22 at 15:02
  • Well, I would the doc I have shared with you is good enough, but here is a sample anyway: https://github.com/spring-projects/spring-integration-samples/tree/main/basic/ftp – Artem Bilan Aug 07 '22 at 17:04