I added a system property in my run.conf of my JBOSS like this:
JAVA_OPTS="$JAVA_OPTS -Dfoo=bar"
Now my question is, if there is a way to resolve this property in a web.xml file in a way something 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>
...