-
1. Re: using environment variabiles in deployment descriptors (web.xml, faces-config.xml, etc.) ?
jaikiran May 2, 2019 8:35 AM (in response to demanzano)This needs to be explicitly enabled in the domain/standalone configuration. The configuration to enable this feature is explained here WildFly Admin Guide
-
2. Re: using environment variabiles in deployment descriptors (web.xml, faces-config.xml, etc.) ?
demanzano May 2, 2019 10:04 AM (in response to jaikiran)Thanks for quick answer !
I did not know about these settings, they are indeed very useful but unfortunately are disabled by default..
If I enable the <spec-descriptor-property-replacement/> I can use either ${env.ENVVARNAME} or ${CMDLINEVARNAME} where the latest is on the "standalone.sh" command line as "-DCMDLINEVARNAME=foo", great !
Now I only miss how to enable the <spec-descriptor-property-replacement/> in my container without copying an entire standalone.xml file ... Can I override it too from cmdline ?
many thanks!
Ale
-
3. Re: using environment variabiles in deployment descriptors (web.xml, faces-config.xml, etc.) ?
simkam May 3, 2019 3:32 AM (in response to demanzano)I think it's not possible to override it with command line parameter when starting server, but you can use jboss-cli and connect to running server and run command
/subsystem=ee:write-attribute(name=spec-descriptor-property-replacement, value=true)