> -----Original Message-----
> From: Harris, Jeffrey E. [mailto:jeffrey.har...@mantech.com]
> Sent: Thursday, March 14, 2013 11:52 AM
> To: Tomcat Users List
> Subject: RE: Procrun and Tomcat service/OS shutdown on Windows
> 
> Edit the registry so Tomcat depends on the HSQLDB shutdown.  This only
> works if HSQLDB is also started as a service.
> 
> Edit the service entry in the registry (under
> HKEY_Local_Machine\system\currentcontrolset\services\<Tomcat Service
> Name>) so Tomcat depends on HSQLDB.  This only works if HSQLDB is also
> started as a service.  If HSQLDB is started some other way (i.e., by
> the Tomcat web app), you can try and install it as a service using the
> srvany utility (or possibly the sc utility).
> 
> If you can configure Tomcat to be dependent on HSQLDB, this will also
> force HSQLDB to start before Tomcat.
> 

I just wanted to post a word of warning on depending on this last "feature".
While Windows will start the HSQLDB server before the Tomcat server, it doesn't 
necessarily imply that the DB will be ready for service.  As soon as the HSQLDB 
service reports "started", Windows will start the next service that's dependant 
on it.  You will want to verify the behavior of your database before relying on 
this feature.
Spoken as one bitten by trying to do this with Oracle some years back.  The 
Oracle DB will report started looong before the recovery process is complete 
and the DB is open for connections.
Jeff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to