HappyEngineer
asked on
shutting down an embedded Derby DB doesn't work
Do I need to shutdown an embedded DerbyDB?
When I try to shutdown the DB it always throws an exception. Here is what I'm doing:
Properties props = new Properties();
// shut down database
props.put("shutdown","true ");
DriverManager.getConnectio n(dbUri,pr ops);
Since it's embedded, the only thing this should do is to close any open files it may have. But, maybe that already happens when I close the connection?
When I try to shutdown the DB it always throws an exception. Here is what I'm doing:
Properties props = new Properties();
// shut down database
props.put("shutdown","true
DriverManager.getConnectio
Since it's embedded, the only thing this should do is to close any open files it may have. But, maybe that already happens when I close the connection?
it throws SQLException when database has been shutdown successfully
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.