ServletContextListener.contextInitialized called for every virtual host!?!?

ServletContextListener.contextInitialized called for every virtual host!?!?

Post by Federico » Thu, 15 Oct 2009 21:47:29


Hi,
in my tomcat it seems that the method
SerlvetContextListener.contextInitialized() is called for every virtual host
i add in Tomcat server.xml configuration files.
(i've tested it with some log lines)

I've tryed to move the application from standard webapps folder to another
folder but the problem seem to remain.
Someone can help me to understand how it works?
thank in advance
 
 
 

ServletContextListener.contextInitialized called for every virtual host!?!?

Post by Kevin McMu » Fri, 16 Oct 2009 14:29:22

In article <hb4h77$os$ XXXX@XXXXX.COM >,



The context is completely different for each virtual host. I haven't
tried it, but you may be able to hold global data in classes initialized
off the default context. Read the docs on classloader scoping to see if
it will.
--
I won't see Goolge Groups replies because I must filter them as spam