[jboss-jira] [JBoss JIRA] (AS7-3812) System properties substitution does not work anymore in persistence.xml

Andrea Carboni (JIRA) jira-events at lists.jboss.org
Fri Feb 17 09:34:40 EST 2012


Andrea Carboni created AS7-3812:
-----------------------------------

             Summary: 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
            Assignee: Scott Marlow
            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