I added a system property to my run.conf of my JBOSS as follows:
JAVA_OPTS="$JAVA_OPTS -Dfoo=bar"
My question now is whether there is a way to resolve this property in the web.xml file like this:
...
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:applicationContext-common.xml
classpath:conf/${foo}/applicationContext-local.xml
</param-value>
</context-param>
...
Mauli source
share