M
Marko Langbein
Hi,
i run an tomcat 5.5.9 and jdk-1_5_0_03-windows-i586-p.
I'm write an small test HttpServlet (with init/destroy), wich on-loaded
through web.xml at starttime. The init function correctly called by tomcat.
But uf i close tomcat, the destroy function do not called:
----------------snips from servlet code
public class Controller extends HttpServlet {
Logging log;
public void init() throws ServletException {
super.init();
buildController();
return;
}
private void buildController() {
log = new Logging();
log.log("start");
}
public void destroy() {
try {
log.log("end");
} catch (Exception e) {
}
return;
}
}
----------------snips from servlet code
Have somebody same problems or can verify my problem?
best regards
Marko Langbein
i run an tomcat 5.5.9 and jdk-1_5_0_03-windows-i586-p.
I'm write an small test HttpServlet (with init/destroy), wich on-loaded
through web.xml at starttime. The init function correctly called by tomcat.
But uf i close tomcat, the destroy function do not called:
----------------snips from servlet code
public class Controller extends HttpServlet {
Logging log;
public void init() throws ServletException {
super.init();
buildController();
return;
}
private void buildController() {
log = new Logging();
log.log("start");
}
public void destroy() {
try {
log.log("end");
} catch (Exception e) {
}
return;
}
}
----------------snips from servlet code
Have somebody same problems or can verify my problem?
best regards
Marko Langbein