List of usage examples for org.apache.commons.pool.impl StackObjectPool close
public synchronized void close() throws Exception
From source file:org.alinous.plugin.derby.DerbyDataSource.java
public void dispose() { StackObjectPool pool = this.connectionPool; this.connectionPool = null; pool.clear();//from www . ja va2 s.c o m try { pool.close(); } catch (Exception e) { e.printStackTrace(); } }