-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nathan,
On 3/26/2009 7:52 AM, Nathan Aaron wrote: > I deploy several applications using one instance of Tomcat. The > Application uses a database that resides on a separate server. When > these servers are rebooted I would prefer that Tomcat start on server A. > Then on server B, the database startup script can just make a call to > start the context. If I don't do it this way Tomcat will start and start > all the contexts. If the database is not available they will fail to start. You could use lazy resource loading instead of forcing everything to work properly at application start. Note that Tomcat should be running in the background by the time this code would run, so looping forever waiting for the db to come up shouldn't make it look like the system is stalled during boot. It may look like the /application/ has stalled (which it has), but you were expecting that anyway if you were trying to keep the app from starting until the database was ready. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknM+cEACgkQ9CaO5/Lv0PA0QgCguaP8ygjqUA0lw+dMvrCYP6lQ uxwAniwZXNgjXLskOBmGsHfMCtboqcE9 =rM0Q -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org