-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonadan,
Jonadan wrote: | I need to start database before any servlet gets first request. ~From the servlet specification for ServletContextListener.contextInitialized: " Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized. " So, this should meet your needs. You should read the documentation for classes suggested by contributors to this list before claiming that they will not meet your needs. | So | immediately after server start, initialize embedded database and make it | ready for incoming first requests, of course, in a separate thread. Actually, you /don't/ want a separate thread: you want it to happen serially, so that nothing else happens during your database initialization. | The same goes not termination time. Again, please read the documentation for ServletContextListener. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeQygoACgkQ9CaO5/Lv0PCvzQCdHYD6/rj/wYVrTO2ZUasia5EL A/0AnRqwEeKkKZupfyfHQKHDe8YS9H0X =szcA -----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]