With Derby you're specifically suppose to call:
DriverManager.getConnection("jdbc:derby:myDatabase;shutdown=true");
When you want to shutdown the database. However with BoneCP you do:
BoneCPConfig config = new BoneCPConfig();
config.setJdbcUrl("jdbc:derby:myDatabase");
config.setXXX(...);
...
BoneCP connectionPool = new BoneCP(config);
// shutdown connection pool
connectionPool.shutdown();
However with derby you need to call the shutdown command otherwise you can get some errors
So the question is how do I call that shutdown connection string within the BoneCP framework?