[jboss-jira] [JBoss JIRA] (AS7-3423) Handle deployments with a persistence provider and javax.persistence classes

Scott Marlow (JIRA) jira-events at lists.jboss.org
Wed Feb 15 16:59:36 EST 2012


     [ https://issues.jboss.org/browse/AS7-3423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow updated AS7-3423:
------------------------------

      Fix Version/s: 7.1.1.Final
                         (was: 7.2.0.Alpha1)
    Forum Reference: https://community.jboss.org/thread/195077

    
> Handle deployments with a persistence provider and javax.persistence classes
> ----------------------------------------------------------------------------
>
>                 Key: AS7-3423
>                 URL: https://issues.jboss.org/browse/AS7-3423
>             Project: Application Server 7
>          Issue Type: Task
>          Components: JPA / Hibernate
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>             Fix For: 7.1.1.Final
>
>
> If an application deployment contains its own copy of a persistence provider and its own of the javax.persistence classes, deploy it as an application managed JPA application (no container managed JPA support feature are expected to be used).
> 1.  initialize the application copy of the javax.persistence.Persistence class by setting an application deployment level PersistenceProviderResolver (via javax.persistence.spi.PersistenceProviderResolverHolder.PersistenceProviderResolver()) that would know about the persistence provider that is bundled.
> 2.  don't inject the javax.persistence module into the deployment.
> 3.  add a unit test that bundles a persistence provider, javax.persistence classes and uses javax.persistence.Persistence.createEntityManagerFactory(String persistenceUnitName).
> https://github.com/alesj/jboss-as/tree/capedwarf contains some related changes that might be worth looking at when this jira is worked around.

--
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