Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3812

System properties substitution does not work anymore in persistence.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • 7.1.0.Final
    • JPA / Hibernate
    • None
    • Compatibility/Configuration
    • Low

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            acarboni_jira Andrea Carboni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: