aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes In which cases does the container CHECK  the web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "In which cases does the container CHECK  the web.xml" Watch "In which cases does the container CHECK  the web.xml" New topic
Author

In which cases does the container CHECK the web.xml

Simran Dass
Ranch Hand

Joined: Jan 09, 2010
Posts: 183

When does the container CHECK the web.xml ?

a) Will web.xml be checked when the URL has a .html at the end
b) Will web.xml be checked when the URL has a .jsp at the end

Or is it that the container always checks the web.xml whenever a URL is accessed.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

The container reads the web.xml at startup. (it might also do it when the web.xml file is modified, but that's container dependant). It won't check it for every request. That would be a performance killer.


[My Blog]
All roads lead to JavaRanch
Javin Paul
Ranch Hand

Joined: Oct 15, 2010
Posts: 281

Hi Christophe,

On a related note , do you know which containers (servers) e.g. tomcat , weblogic etc supports runtime modification of web.xml and how does it actually happens do they expose JMX webpage or it simply modification using text editor.


http://javarevisited.blogspot.com - java classpath - Java67 - java hashmap - java logging tips java interview questions Java Enum Tutorial
Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 610

I.e. Tomcat 7 does support web.xml (context) reload.
It was reloaded after I made some changes in external text editor.

Cheers!


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: In which cases does the container CHECK the web.xml