Solved

shutting down an embedded Derby DB doesn't work

Posted on 2006-11-23
2
170 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now