I'm trying to generalize Wildfly (8.2 Final) XML configuration in order to have a single configuration XML file with references of system properties (${what.ever.value.key.from.proerties}) in order to distinguish dev. and prod. env. by different .properties-files.
Worked fine till I've rich the undertow subsystem. When I try to reference value from property for the alias attribute of vertual host configuration - it doesn't seem to recognize and resolve at this position the key with value from .properties.
A small snippet of Wildfly XML configuration to show what I mean exactly:
<subsystem xmlns="urn:jboss:domain:undertow:1.2">
...
<server name="default-server">
...
<host name="default-host" alias="${undertow.virtual.host.alias.mydomain}">
...
</host>
</server>
...
</subsystem>
And corresponding entries in dev.properties file:
undertow.virtual.host.alias.mydomain=localhost
and in prod.properties file:
undertow.virtual.host.alias.mydomain=www.mydomain.com
The value of the key 'undertow.virtual.host.alias.mydomain' will not be substituted. What do I do wrong here? Or such functionality does not support for alias attribute?
Thanks in advance!