I develop a servlet frame work providing the business service. But I got a big problem. There is a bug in my servlet. When the servlet runs for a while, the servlet will crash irregular. The question is:
Quesiton 1: Now on I get to know the servlet is died by the user's report. Is there any solution to now whether the servlet is work properly automatically?
Question 2: The only solution I know right now to recovery the servelet is shut down the Tomcat and restart the Tomcat again. (Of course, I am debug my servlet right now! ) Is there any way to restart the servlet without restarting the Tomcat.
1. I like to stick in a sort of "back-door" GET request that uses a password to show management type information - I have a local html file that sets up the GET so all I have to do is click on it, fill in the password, and make the request to see if the servlet is running. You could automate this.
2. The Java Management servlet gives you the control needed to stop and reload a web application - you have to set up an account and password to use it. Bill