I am creating a thread, when my webapp is started. I want to periodically check, whether this thread is running or not. If not, I want to create a new thread.
To create a new thread, I have used a servlet class constructor. When webapp is deployed, this code is starting the thread. But, on the webapp access, I want to check whether this thread is running or not.
Please help me out.
Thanks in advance!
posted 7 years ago
The Thread class has a isAlive() method.
Register your thread somewhere so you can globally access it's instance and then check.
JDBCSupport - An easy to use, light-weight JDBC framework -