[jboss-jira] [JBoss JIRA] (WFLY-2720) Ability for Deployment Overlays to overlay System Properties

Joshua Henn (JIRA) issues at jboss.org
Wed Jan 8 19:21:33 EST 2014


     [ https://issues.jboss.org/browse/WFLY-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Henn updated WFLY-2720:
------------------------------

    Description: 
Currently Deployment Overlays allow only the replacing whole resource files.  It would be nice to also be able to overlay System Properties that take precedent over globally defined properties.

ie.

    <deployment-overlays>
        <deployment-overlay name="myOverlay">
<system-properties>
        <property name="datasource.dockyard" value="java:jboss/datasources/dockyard"/>
    </system-properties>
            <content path="/WEB-INF/jboss-web.xml" content="/Users/josh/jboss-web.xml"/>
            <content path="/WEB-INF/classes/persistence.xml" content="/Users/josh/persistence.xml"/>
            <deployment name="controller2.war"/>
        </deployment-overlay>
    </deployment-overlays>

Usecase:
Have two deployments active of the same application, run-time configured by descriptor replacements via System Properties.

  was:
Currently Deployment Overlays allow for replacing whole resource files.  It would be nice to also be able to overlay System Properties that take precedent over globally defined properties.

Usecase:
Have two deployments active of the same application, run-time configured by descriptor replacements via System Properties.


    
> Ability for Deployment Overlays to overlay System Properties
> ------------------------------------------------------------
>
>                 Key: WFLY-2720
>                 URL: https://issues.jboss.org/browse/WFLY-2720
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Joshua Henn
>             Fix For: 8.0.0.Final
>
>
> Currently Deployment Overlays allow only the replacing whole resource files.  It would be nice to also be able to overlay System Properties that take precedent over globally defined properties.
> ie.
>     <deployment-overlays>
>         <deployment-overlay name="myOverlay">
> <system-properties>
>         <property name="datasource.dockyard" value="java:jboss/datasources/dockyard"/>
>     </system-properties>
>             <content path="/WEB-INF/jboss-web.xml" content="/Users/josh/jboss-web.xml"/>
>             <content path="/WEB-INF/classes/persistence.xml" content="/Users/josh/persistence.xml"/>
>             <deployment name="controller2.war"/>
>         </deployment-overlay>
>     </deployment-overlays>
> Usecase:
> Have two deployments active of the same application, run-time configured by descriptor replacements via System Properties.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list