Example usage for org.apache.commons.dbcp PoolingDriver closePool

List of usage examples for org.apache.commons.dbcp PoolingDriver closePool

Introduction

In this page you can find the example usage for org.apache.commons.dbcp PoolingDriver closePool.

Prototype

public synchronized void closePool(String name) throws SQLException 

Source Link

Usage

From source file:org.rimudb.pool.DBCPConnectionManager.java

public void disconnect() throws RimuDBException {
    try {/* w w  w.ja v  a2 s  .c om*/
        PoolingDriver driver = (PoolingDriver) DriverManager.getDriver("jdbc:apache:commons:dbcp:");
        driver.closePool(dbConfig.getDatabaseID());
    } catch (SQLException e) {
        throw new RimuDBException(e);
    }
}