Datasource-style setup of the connection pool can be done either via the BoneCPConfig class or as per the following example (exception handling omitted for clarity):
 
	Class.forName("org.hsqldb.jdbcDriver"); 	// load the DB driver
 	BoneCPDataSource ds = new BoneCPDataSource();  // create a new datasource object
 	ds.setJdbcUrl("jdbc:hsqldb:mem:test");		// set the JDBC url
	ds.setUsername("sa");				// set the username
	ds.setPassword("");				// set the password
	
	ds.setXXXX(...);				// (other config options here)
	
	Connection connection;
	connection = ds.getConnection(); 		// fetch a connection
	
	...  do something with the connection here ...
	
	connection.close();				// close the connection
	ds.close();					// close the datasource pool