[jboss-jira] [JBoss JIRA] (WFCORE-450) Support using parent system properties in child properties

Brian Stansberry (JIRA) issues at jboss.org
Tue Dec 9 16:13:39 EST 2014


    [ https://issues.jboss.org/browse/WFCORE-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026446#comment-13026446 ] 

Brian Stansberry commented on WFCORE-450:
-----------------------------------------

This is failing because the code that is working out the command to launch the server VM is resolving all expressions in the resource trees for the new server's server-config and server-group. That logic should not try to resolve the value of a child system-property resource if that resource has a "boot-time" attribute set to "false".

[~samppaa] once I fix this, for it to work you'd need to have this in the config for the server-group:

{code}
<system-properties>
    <property name="g1_foo" value="${foo}" boot-time="false"/>
</system-properties>
{code}

The "boot-time" param tells the Host Controller not to try and pass the system property to the server as part of VM launch using -D, but rather to make it part of its post-boot config. If the Host Controller needs to pass the property to the server as part of VM launch, the HC has to be able to resolve it locally, i.e. using a property passed to the HC process from the command line or via editing bin/domain.conf. 

> Support using parent system properties in child properties
> ----------------------------------------------------------
>
>                 Key: WFCORE-450
>                 URL: https://issues.jboss.org/browse/WFCORE-450
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Samuli Saarinen
>            Assignee: Brian Stansberry
>         Attachments: domain.xml.patch, host-controller.log
>
>
> Using wildfly domain I would like to define some properties in domain.xml and then be able to use these properties when defining others in server-group or server level. Currently this leads to JBAS014802: Cannot resolve expression.
> More detailed example:
> {code:xml|title=domain.xml}
> <domain>
>     <system-properties>
>         <property name="foo" value="bar"/>
>     </system-properties>
>     ...
>     <server-group name="g1">
>         <system-properties>
>             <property name="g1_foo" value="${foo}"/>
>         </system-properties>
>     </server-group>
> </domain>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list