I have a timer that is running in a servlet in Glassfish and I encountered a problem with it last night, the timer thread stopped. I need a way to ensure the timer is running and if it does stop, to restart it. Is there a way to have the server monitor this or am I hoping for too much?