Solved

shutting down an embedded Derby DB doesn't work

Posted on 2006-11-23
2
181 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 500 total points
ID: 18006112
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 106
program arguments vs VM arguments 4 54
Where to place postgres JDBC driver jar on tomcat 8 65
Java ArrayList and if statement 2 50
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

739 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