public void finalize () throws Throwable { try { cleanup (); } finally { super.finalize (); } }
/** * Closes the datasource (and shuts down the pool). * */ public void close () { pool.cleanup (); removeFromMap ( jndiName ); }
/** * Cleans up the instance, and closes the pool. */ public void close () { pool_.cleanup (); removeFromMap ( resource_.getName () ); if ( autoRegister_ ) Configuration.removeResource ( resource_.getName () ); }