[jboss-jira] [JBoss JIRA] (WFLY-2933) Can't use system properties to set persistence-unit element content in persistence.xml

Scott Marlow (JIRA) issues at jboss.org
Fri Feb 14 11:37:28 EST 2014


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

Scott Marlow resolved WFLY-2933.
--------------------------------

    Resolution: Rejected

    
> Can't use system properties to set persistence-unit element content in persistence.xml
> --------------------------------------------------------------------------------------
>
>                 Key: WFLY-2933
>                 URL: https://issues.jboss.org/browse/WFLY-2933
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JPA / Hibernate
>    Affects Versions: 8.0.0.Final
>            Reporter: Grégory Bévan
>            Assignee: Scott Marlow
>             Fix For: 8.0.1.Final
>
>
> I want to set dinamically content of "jta-data-source" element in persistence.xml file by using system properties passed on command line.
> The following link shows it's possible for previous JBoss version : http://www.mastertheboss.com/jpa-configuration/how-to-use-an-env-variable-in-your-persistencexml
> I've tested on JBoss 7.1.0.Final and it works.
> It goes with the possibility to define expression in datasource subsystem as described in WFLY-2160

--
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