[jboss-jira] [JBoss JIRA] (AS7-3870) Stateful beans should enlist the extended persistence context into the JTA independently of EntityManager invocation

Scott Marlow (JIRA) jira-events at lists.jboss.org
Thu Feb 23 10:14:51 EST 2012


    [ https://issues.jboss.org/browse/AS7-3870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670317#comment-12670317 ] 

Scott Marlow commented on AS7-3870:
-----------------------------------

Also need to cover UT:

{quote}
When a business method of the stateful session bean is invoked, if the stateful session bean uses bean managed transaction demarcation and a UserTransaction is begun within the method, the container associates the persistence context with the JTA transaction and calls EntityManager.joinTransaction.
{quote}
                
> Stateful beans should enlist the extended persistence context into the JTA independently of EntityManager invocation
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-3870
>                 URL: https://issues.jboss.org/browse/AS7-3870
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 7.1.0.Final
>            Reporter: Scott Marlow
>            Assignee: Scott Marlow
>              Labels: eap6
>             Fix For: 7.1.1.Final
>
>
> "7.9.1 Container Responsibilities:
> ...
> For stateful session beans with extended persistence contexts:
> ...
> When a business method of the stateful session bean is invoked, if the stateful session bean uses container managed transaction demarcation, and the entity manager is not already associated with the current JTA transaction, the container associates the entity manager with the current JTA transaction and calls EntityManager.joinTransaction.
> "

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