I want to detect newly created files in a remote location, so I can process this file (read it, and do some operations on it)
so please, how can I do this using Java 5? (I know it is an old server, but we have problems in upgrading it during recent times)
Note: the way to access the remote file is of our choice depending on the proposed solution (i.e. for example, if the best solution is by using FTP, I'll handle it)
thanks in advance guys.
The simplest solution is to use the Directory Watcher
This requires Java 7 and the directory be mounted and visible to the user running the process.