Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

shutting down an embedded Derby DB doesn't work

Posted on 2006-11-23
2
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 18006112
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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.
Suggested Courses

670 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