Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In which cases does the container CHECK the web.xml

 
Simran Dass
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Javin Paul
Ranch Hand
Posts: 295
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I.e. Tomcat 7 does support web.xml (context) reload.
It was reloaded after I made some changes in external text editor.

Cheers!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic