At 10:33 PM 1/30/2003 -0800, you wrote:
I want to do some[1] processing after my web
application finishes starting completely, but before
any servlet requests arrive. Are there any listeners
for this situation?

Q1. Does tomcat serve any requests before
ServletContextListener.contextInitialized finishes
execution?
no

Q2.Is it correct to say that the application has fully
started at the end of
ServletContextListener.contextInitialized(ServletContextEvent)
yes, other than running other servlet context listeners. You can specify multiple servlet context listeners, but no requests to servlets will be taken until all servlet context listeners have successfully completed everything in the contextInitialized() methods.

Q3. Are the static blocks in the servlet classes run
after ServletContextListener.contextInitialized.
This I am not 100% sure of. I would think not, but you'll have to find the definitive answer from someone else.

[1] I want to deploy axis services programmatically
after application starts. This is done by an
AdminClient contacting the server. But the problem is
that the server is not yet up! Where do you think
should I do this deployment?
I don't have any experience with Axis stuff.  Sorry.

thanks.

Jake

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to