-
1. Re: How to Override context-param in web.xml in Jboss EAP 6.4 and 7.1 at deployment time
simkam Mar 25, 2019 8:45 AM (in response to priyanka.wadekar1)Hi,
I'm not sure if it is possible to override context-param, but you should be able to use property replacement in web.xml.
Something like this should work:
<context-param>
<param-name>myproject.logpath</param-name>
<param-value>${logpath:defaultValue}</param-value>
</context-param>
Property replacement has to be enable in EE subsystem, attribute spec-descriptor-property-replacement .
-
2. Re: How to Override context-param in web.xml in Jboss EAP 6.4 and 7.1 at deployment time
priyanka.wadekar1 Apr 1, 2019 3:37 AM (in response to simkam)Hello Martin, as per this - 15.2. Enabling/Disabling Descriptor Based Property Replacement - Red Hat Customer Portal the
jboss-descriptor-property-replacement
is used to enable or disable property replacement in the following descriptors:jboss-ejb3.xml
jboss-app.xml
jboss-web.xml
*-jms.xml
*-ds.xml
The default value for
jboss-descriptor-property-replacement
istrue
.But i do not have above mentioned xmls in our project and want to modify web.xml so after some R&D i found deployment-overlay command to replace whole web.xml. Means, seems EAP does not support property replacement but it supports content replacement. We decided to provide customer web.xml template where they will put all required values for context-params and then war will be reployed using deployment-overlay command.