O servlet context é inicializado quando qq Servlet for acessado?
Se inserir no web.xml load-on-startup para inicializar o servlet, automaticamente sao criados os objetos implicitos ServletContext, Session etc???
SE ALGUM PUDER AJUDAR. OBRIGADO!!!
O servlet context é inicializado quando qq Servlet for acessado?
Se inserir no web.xml load-on-startup para inicializar o servlet, automaticamente sao criados os objetos implicitos ServletContext, Session etc???
SE ALGUM PUDER AJUDAR. OBRIGADO!!!
o ServletContext é iniciado quando o servidor Java é inicializado.
Quando vc chamar um Servlet o ServletContext já está criado.
Não sei se isso vai te ajudar, deve ser detalhe demais, mas dá uma olhada:
http://tomcat.apache.org/tomcat-5.5-doc/architecture/startup.html
http://tomcat.apache.org/tomcat-5.5-doc/architecture/startup/serverStartup.txt
<blockquote>…
The deployer will create a Digester for your context, this digester
will then invoke ContextConfig.start()
The ContextConfig.start() will process the default web.xml (conf/web.xml)
and then process the applications web.xml (WEB-INF/web.xml)
…</blockquote>