Dec 6th, 2012, 02:09 PM
Help : multiple directory watch service
My project has requirements to watch multiple directories (over 100) for coming plain text files which are either empty or have contents. The consecutive processing includes file parsing and save the file content to Oracle. File parsing may include text to XML conversion.
My questions are,
1. Is there a multi-threads mechanism to deal with multi-directories? For example, a thread pool with pre-configured 10 threads takes care of all directories. An ideal situation would be the coming file is detected instantly when it arrives.
2. Is the file arrival detection aware of the completion of the file transferring? Some files may be a bit big and the file parsing should not start until the file transfer finishes.
3. Does the DB implementation have any thread pool ready to deal with DB insertion? Tomcat JDBC connection pool seems great, any integration with it?
Appreciate any helps!
Tags for this Thread