> -----Original Message----- > From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] > Sent: Monday, March 18, 2013 12:27 PM > To: 'Tomcat Users List' > Subject: RE: Procrun and Tomcat service/OS shutdown on Windows > > > -----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
Good point! Jeffrey Harris Jeffrey Harris This e-mail and any attachments are intended only for the use of the addressee(s) named herein and may contain proprietary information. If you are not the intended recipient of this e-mail or believe that you received this email in error, please take immediate action to notify the sender of the apparent error by reply e-mail; permanently delete the e-mail and any attachments from your computer; and do not disseminate, distribute, use, or copy this message and any attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org