[
https://issues.jboss.org/browse/AS7-3423?page=com.atlassian.jira.plugin.s...
]
Scott Marlow updated AS7-3423:
------------------------------
Description:
If an application deployment contains its own copy of a persistence provider, make it
possible for the application to access the persistence provider via the
javax.persistence.Persistence.
https://github.com/alesj/jboss-as/tree/capedwarf contains some related changes that might
be worth looking at when this jira is worked around.
was:
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.
Forum Reference:
https://community.jboss.org/thread/195077 (was:
https://community.jboss.org/thread/195077)
persistence providers deployed with applications should be available
via javax.persistence.Persistence api
----------------------------------------------------------------------------------------------------------
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, make it
possible for the application to access the persistence provider via the
javax.persistence.Persistence.
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