Re: Running class finalize method when stopping/restarting a WebApp

2002-10-14 Thread JensStutte
There is no way to ensure, that a finalize method is called. It depends on the JVM's GC implementation and has nothing to do with tomcat. If it's a servlet, you can override the destroy() method of the servlet class to close your connections. Or you make a class that implements

Running class finalize method when stopping/restarting a WebApp

2002-09-27 Thread Oakleaf Admin
Hi, I have an application scope class that is managing an Oracle connection cache to my database. The finalize method of this class is written to terminate all connections and close the connection cache. However, when I stop the webapp or restart it (using the manager app) the finalize of