db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oystein Grovlen - Sun Norway <Oystein.Grov...@Sun.COM>
Subject Re: [SHUTDOWN] Should I shutdown embedded data base ?
Date Thu, 30 Mar 2006 08:17:50 GMT
yves pielusenet wrote:

> Thank you for your answer :)
> So, since I use an embedded database, should I use the shutdown command
> (database shutdown nor derby shutdown) everytime I do
> Connection.close() ? (an if so, why derby connection close command call
> itself database;shutdown=true commande ?)
> 
> And a the very end of my application I do a derby shutdown
> DriverManager.getConnection("jdbc:derby:cs;shutdown=true");
> 
> that's right ? :)

No, you need only shut down the database at the end of your application.
Note that a derby shutdown is just a shutdown of all databases you have 
opened.  If you just have a single database, a single shut down is enough.

-- 
Øystein Grøvlen, Senior Staff Engineer
Sun Microsystems, Database Technology Group
Trondheim, Norway

Mime
View raw message