[jboss-jira] [JBoss JIRA] (WFCORE-336) Ability for Deployment Overlays to overlay System Properties
Brian Stansberry (JIRA)
issues at jboss.org
Fri Jun 2 12:21:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry resolved WFCORE-336.
-------------------------------------
Resolution: Won't Do
I'm resolving this as Won't Do because the existing META-INF/jboss-properties facility allows deployment-specific resolution of values. A system property is globally scoped so there is no way to have it have a different value in a different context.
There are other things to track though that may meet the use case:
1) The Microprofile Config API and an impl of that that [~jmesnil] developed for use in WildFly-based servers (particularly WildFly Swarm):
https://github.com/wildfly-extras/wildfly-microprofile-config
2) A recent request for a different way to configure per deployment properties for use in expression resolution:
https://issues.jboss.org/browse/WFLY-8868
> Ability for Deployment Overlays to overlay System Properties
> ------------------------------------------------------------
>
> Key: WFCORE-336
> URL: https://issues.jboss.org/browse/WFCORE-336
> Project: WildFly Core
> Issue Type: Feature Request
> Components: Domain Management
> Reporter: Joshua Henn
>
> 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.
> {code:xml}
> <deployment-overlays>
> <deployment-overlay name="myOverlay">
> <system-properties>
> <property name="datasource" value="java:jboss/datasources/controller"/>
> </system-properties>
> <deployment name="controller.war"/>
> </deployment-overlay>
> </deployment-overlays>
> {code}
> Usecase:
> Have two deployments active of the same application, run-time configured by descriptor replacements via System Properties.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list