ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Henricksen" <T...@A-t-g.com>
Subject iBatis cleanup
Date Fri, 05 Oct 2007 13:45:22 GMT
We have an application that has a ServletContextListener that creates
three SqlMapClients in the contextInitialized.  When the application is
shutting down(in the contextDestroyed) should we just null out those
SqlMapClient or does it matter.


Called from the contextDestroyed


public static void stopService() {

      //Get ready for garbage collection

      singleton = null;

      reportingClientSingleton = null;

      nestedTransactionSingleton = null;



We have some memory leaks from our Websphere production environment and
I just want tidy things up.




Tom Henricksen
Advanced Technologies Group, Inc.

View raw message