Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Derby shutdown in embedded server

843859Jul 12 2007 — edited Mar 30 2008
I want to start a derby embeded server in my application (see http://db.apache.org/derby/manuals/admin/hubprnt09.html#HDREMBEDDEDSERVEREX), in such a way that the application could access to the database in embedded way to get the maximum performance and, simultaneously, I can connect to the DB from other tools to explore the database (eg. DBVisualizer).

There are to ways to start the embedded server:

1) setting the derby.drda.startNetworkServer property to true
2) starting (and shutting down) the network server through the NetworkServerControl

the problem with both approaches is when the application finalizes, it appears that the databsae shutdown is not properly executed because the "db.lck" archive and the "tmp" directory remains there.

Any idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2008
Added on Jul 12 2007
7 comments
1,159 views