|
From: fredt <fr...@us...> - 2005-10-18 12:56:55
|
Yes, this would be a good thing to add to the code. Note that the timer can serve more than one database, so the code should check the count of remaining databases in org.hsqldb.DatabaseManager Fred ----- Original Message ----- From: "Tobias Bocanegra" <tob...@da...> To: <hsq...@li...> Sent: 18 October 2005 10:02 Subject: [Hsqldb-developers] HsqlTimer.shutdown() hi all, i noticed that after shutting down an embedded database, the thread of the HsqlTimer is still running. i quickly checked the source code, but i could not find a reference to HsqlTimer.shutdown(), so i think it is never called. this results in a problem for example when using hsqldb embedded in a webapp. the threads keeps on running and the webapp classloader cannot be GCed. my workaround would be to call DatabaseManager.getTimer().shutdown() after my webapp is shutdown. what is your opinion ? regards, toby -- -----------------------------------------< tob...@da... >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >--- ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ hsqldb-developers mailing list hsq...@li... https://lists.sourceforge.net/lists/listinfo/hsqldb-developers |