With Tomcat, with a <Parameter>
placed inside a <Context>
(e.g. in Tomcat's server.xml
), it is possible to define context parameters for a web app outside of the web app itself, i.e. without having to change the web.xml
.
This is convenient in cases where the same war
is being deployed on multiple servers, and you'd like to configure the web app in each case, but this without having to modify the content of the war
.
For more on this feature in the context of Tomcat, see the Tomcat doc on context parameters. Does WebSphere provide a similar capability?