-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonadan,

Jonadan wrote:
| At startup, I can check dbms status from ServletContextListener and if not
| initiated, I can start as you suggested. It serialize the begining of dbms
| startup process which create a bunch of service threads. Then quickly
| returns without delaying much time.

This is a self-defeating technique: your threads are not guaranteed to
complete your database configuration before any requests are serviced.

| For termination check, it is not clear whether "contextInitialized" is
| called once before Tomcat dies. Or can be called a number of times by
admin
| activities. If this is the case, it will be hard to detect.

By definition, Tomcat will call this method exactly once before a web
application is destroyed, and requests are guaranteed not to follow this
call.

| Note that "ServletContextEvent" does not provide such information!

What information?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeRKGQACgkQ9CaO5/Lv0PBfXACghrgvrDdfYMlJmv+HNNbryEGZ
kpgAnjefxM4Fd5cCDlNPyWlMlmS0cRWc
=otpG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to