File changed listener in Java -


A file has been changed to the file system, so I want to inform you that I have not found anything, but a thread That selects the last modified file property and clearly this solution is not suitable.

The only way to model this utility at the lower level is to have a thread on a directory and Monitor the file's features. But you can use patterns to develop an adapter for this kind of utility.

For example, J2EE application servers like Tomcat and others have an auto-load feature where the deployment descriptor changes or the application resumes in the sublet class.

You can use libraries from this type of server because most of the code of the tomcube is reusable and opens.


Comments