@Override public Connection getConnection () throws SQLException { return this.dataSource.getConnection (); } }
@Override public Connection getConnection () throws SQLException { return this.dataSource.getConnection (); } }
/** * Returns a {@link Connection} from the pool. * * @return a connection from the pool * @throws SQLException */ public Connection getConnection() throws SQLException { LOG.debug( "For connection id '{}': active connections: {}, idle connections: {}", new Object[] { id, pool.getNumActive(), pool.getNumIdle() } ); return ds.getConnection(); }