Example usage for org.apache.commons.pool.impl StackObjectPool close

List of usage examples for org.apache.commons.pool.impl StackObjectPool close

Introduction

In this page you can find the example usage for org.apache.commons.pool.impl StackObjectPool close.

Prototype

public synchronized void close() throws Exception 

Source Link

Usage

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();
    }
}