I have a JSP file starts a TimerTask on the server. Everytime that the server is restarted, The TimerTask object is lost and I have to manually hit the JSP page to set it again.
By any chance, can I add a server script that hits the JSP page automatically just after the server has been restarted?
Note: Its a JBOSS 3.2.8 server
Pull the code from JSP, place it in a servlet and define a servlet to be initiated automatically in web.xml.
(Servlet can forward to the same JSP so that requests could still get that JSP)