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

F

Federico @ Work

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
 
K

Kevin McMurtrie

"Federico @ Work said:
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

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top