[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 11:25:29 EST 2014
[ https://issues.jboss.org/browse/WFLY-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12944776#comment-12944776 ]
Grégory Bévan commented on WFLY-2933:
-------------------------------------
Thanks for your quick reply and sorry for disturbing you!.
I've tried the true value for spec-descriptor-property-replacement and now the reference to system properties are replaced in persistence.xml.
For your information, i've now found mention of this in document about migration form Weblogic or Websphere to Wildfly.
I wish next time I could guess new "hidden" functionnality in Wildfly or I'll use the forum before declaring a bug ;)
> 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