[jboss-jira] [JBoss JIRA] (AS7-3812) System properties substitution does not work anymore in persistence.xml
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Fri Feb 17 12:22:36 EST 2012
[ https://issues.jboss.org/browse/AS7-3812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Marlow closed AS7-3812.
-----------------------------
Labels: (was: worked)
Assignee: (was: Scott Marlow)
Resolution: Duplicate Issue
This looks like a duplicate of AS7-3195. If you have further details/cases, it would be better to add them to the existing jira or discussion on the linked mailing list.
> System properties substitution does not work anymore in persistence.xml
> -----------------------------------------------------------------------
>
> Key: AS7-3812
> URL: https://issues.jboss.org/browse/AS7-3812
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 7.1.0.Final
> Environment: Linux 3.0.0 (kubuntu 11.10), jdk 1.6.0_30 (64bit)
> Reporter: Andrea Carboni
> Priority: Minor
>
> In AS6 was possible to use system properties substitution inside the <mapping-file> element. Example:
> <persistence-unit name="xyz" transaction-type="JTA">
> <provider>org.hibernate.ejb.HibernatePersistence</provider>
> <jta-data-source>java:/myDS</jta-data-source>
> <mapping-file>/META-INF/${drg.db.type}/orm.xml</mapping-file>
> <properties>
> ...
> </properties>
> </persistence-unit>
> The substitution inside the <mapping-file> allows to have different mapping files inside the same application with switching at runtime time and only one artifact.
> This stopped working in 7.1.0.Final.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list