Derby shutdown in embedded server
843859Jul 12 2007 — edited Mar 30 2008I 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?