Link to home
Start Free TrialLog in
Avatar of HappyEngineer
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.getConnection(dbUri,props);

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?
Avatar of Ajay-Singh
Ajay-Singh

it throws SQLException when database has been shutdown successfully
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial