I have a little problem figuring this out the right way.
I have a Java application reading a log file continuously using threads. While that application is still reading the log file, a client should be able to query the current status (i.e. a certain key was found in the log file) through a java servlet.
My current issue is that I am having problems getting that status using the doGet-Method of the servlet. WHile running the thread is supposed to change a single boolean variable.
My question is:
How do I get the Log Reader Thread to start running when I deploy the Servlet on my Tomcat. In idle mode the Log Reader is listening for new files in a folder and starts to read them once they appear?