views:

21

answers:

0

Is there any way to OVERRIDE a webapp's context parameters (already defined inside its WEB-INF/web.xml with default values) when the webapp.WAR is being deployed to the JBoss AS 5.1?

Apache Tomcat has a nice feature whereby if a webapp WAR file is being deployed using the Tomcat Manager, you have the option of supplying an XML configuration file that can contain context parameter settings that you wish to override from the webapp's built-in defaults.

I am trying to find out if JBoss 5.1 has anything similar to this.

My only workaround at the moment, and an ugly one at that, is to unpack webapp.WAR, edit the WEB-INF/web.xml and make changes to the context parameter values, repack the webapp and now deploy the modified WAR file.

It would be nice if there were some other way to accomplish on JBoss AS 5.1 without resorting to unpacking & repacking the WAR file.