java - Wildfly 8.2/Undertow - properties placeholder does not seem to work for alias attribute in host configuration -
i'm trying generalize wildfly (8.2 final) xml configuration in order have single configuration xml file references of system properties (${what.ever.value.key.from.proerties}) in order distinguish dev. , prod. env. different .properties-files.
worked fine till i've rich undertow subsystem. when try reference value property alias attribute of vertual host configuration - doesn't seem recognize , resolve @ position key value .properties.
a small snippet of wildfly xml configuration show 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 key 'undertow.virtual.host.alias.mydomain' not substituted. do wrong here? or such functionality not support alias attribute?
thanks in advance!
that attribute doesn't:
"alias" => { "type" => list, "description" => "aliases host", "expressions-allowed" => false, "nillable" => true, "value-type" => string, "access-type" => "read-write", "storage" => "configuration", "restart-required" => "all-services" }
you can use read-resource-description
operation see if expressions allowed. example /subsystem=undertow/server=default-server/host=default-host:read-resource-description
resource.
you @ wildscribe site should have versions available.
Comments
Post a Comment