File location listener in Java - Spring application -


i have java - spring application. want set feature listen file location(folder) , has process file file created in folder.

my plan set spring quartz cron job run in every 5 minutes , process files available.

please suggest me better approach.

a choice of solution depends on how appearance of waited file must detected. if not urgently , @ least 1 minutes ok, solution using kind of cron job ok too. if file should detected asap, must provide permanent running program, detects file in short intervals. can reached task dedicated daemon. if program has nothing during wait time, can contain part file detection.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -