[jboss-jira] [JBoss JIRA] (AS7-1663) An extended persistence context should not be propagated if there is no JTA transaction
Scott Marlow (JIRA)
jira-events at lists.jboss.org
Wed May 9 22:23:17 EDT 2012
[ https://issues.jboss.org/browse/AS7-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Marlow updated AS7-1663:
------------------------------
Git Pull Request: https://github.com/jbossas/jboss-as/pull/225 (was: https://github.com/jbossas/jboss-as/pull/225)
Affects: Documentation (Ref Guide, User Guide, etc.),Compatibility/Configuration,Release Notes (was: Documentation (Ref Guide, User Guide, etc.),Compatibility/Configuration)
Forum Reference: http://community.jboss.org/message/623004 (was: http://community.jboss.org/message/623004)
> An extended persistence context should not be propagated if there is no JTA transaction
> ---------------------------------------------------------------------------------------
>
> Key: AS7-1663
> URL: https://issues.jboss.org/browse/AS7-1663
> Project: Application Server 7
> Issue Type: Feature Request
> Components: JPA / Hibernate
> Affects Versions: 7.0.0.Final
> Reporter: Scott Marlow
> Assignee: Scott Marlow
> Fix For: 7.0.2.Final
>
>
> JPA 2.0 specification section 7.6.3.1 Requirements for Persistence Context Propagation:
> "
> Persistence contexts are propagated by the container across component invocations as follows.
> If a component is called and there is no JTA transaction or the JTA transaction is not propagated, the
> persistence context is not propagated.
> "
> For the case of a SFSB (with an extended persistence context XPC) method that is not in a JTA transaction, invoking a SLSB (with a transactional entity manager PC) method that requires a transaction. The SLSB method should not use the extended persistence context but should instead start a new persistence context instead for the duration of the SLSB transaction (will end at the method end).
--
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