[jboss-jira] [JBoss JIRA] (WFLY-2933) Can't use system properties to set persistence-unit element content in persistence.xml
Grégory Bévan (JIRA)
issues at jboss.org
Fri Feb 14 02:23:28 EST 2014
[ https://issues.jboss.org/browse/WFLY-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grégory Bévan updated WFLY-2933:
--------------------------------
Description:
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
was:
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. I 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
> 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