does the network server correctly handle windows shutdown?

View: New views
2 Messages — Rating Filter:   Alert me  

does the network server correctly handle windows shutdown?

by Peri Tarr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm deploying Derby as a network server on a few Windows (XP) machines. I can handle automatic startup via the Windows startup folders, but there's no shutdown folder, and I can't rely on the machine owners to remember to issue the Derby shutdown command before they shut down or reboot their machines.

Does Derby handle machine shutdowns that occur while it's still running, or do I need to find a way to get stopnetworkserver run before normal shutdowns/reboots?

Many thanks!
     Peri

Re: does the network server correctly handle windows shutdown?

by Bryan Pendleton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Does Derby handle machine shutdowns that occur while it's still running,

I believe Derby should be OK with this. At the time of the next startup,
when the database is next opened by an application, Derby will
automatically scan its log file and perform recovery (re-doing any
committed transactions that weren't flushed to disk, and un-doing any
in-flight transactions that were active at the time of the shutdown).

This entire process should be invisible to the user and to the application,
except for a very short pause when the database is re-opened and recovered.

thanks,

bryan