Hi,
I wanted to code for a daemon that would check the directory for files with particular naming continuously.
Once it finds those files it should upload those into DB.
One of the approaches that I thought of is to create a
servlet that would start a
thread which would start polling for the files.
Once the file is found it would invoke a stateless session Bean that would handle the upload logic.
Please suggest/ comment about the approach.Also if you have some references regarding this functionality, kindly share it across.
Thank you.