On 7/25/2013 6:45 AM, Rong Qu wrote:
We use "NetworkServerControl shutdown" to stop derby network server. We noticed sometimes, the server was not stopped immediately. wondering if there is a simple way to verify the server was completely stopped. e.g. some DB lock file.
 
Thanks for any help you can provide.

Hi Rong,

You can use NetworkServerControl.ping to see if the server is still up.
http://db.apache.org/derby/docs/10.8/publishedapi/jdbc3/org/apache/derby/drda/NetworkServerControl.html#ping

Thanks

Kathey