Solved

shutting down an embedded Derby DB doesn't work

Posted on 2006-11-23
2
179 Views
Last Modified: 2010-03-31
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?
0
Comment
Question by:HappyEngineer
  • 2
2 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 18006109
it throws SQLException when database has been shutdown successfully
0
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 500 total points
ID: 18006112
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question