You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org> on 2011/07/11 14:23:59 UTC
[jira] [Closed] (OPENEJB-1628) Calling a @Remove method must also
close persistence contexts
[ https://issues.apache.org/jira/browse/OPENEJB-1628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Louis MONTEIRO closed OPENEJB-1628.
----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0
> Calling a @Remove method must also close persistence contexts
> -------------------------------------------------------------
>
> Key: OPENEJB-1628
> URL: https://issues.apache.org/jira/browse/OPENEJB-1628
> Project: OpenEJB
> Issue Type: Bug
> Reporter: Jean-Louis MONTEIRO
> Assignee: Jean-Louis MONTEIRO
> Fix For: 4.0
>
>
> As per the spec, when calling an @Remove method, all persistence contexts attached must also be closed.
> 7.6.2 Container-managed Extended Persistence Context
> A container-managed extended persistence context can only be initiated within the scope of a stateful
> session bean. It exists from the point at which the stateful session bean that declares a dependency on an
> entity manager of type PersistenceContextType.EXTENDED is created, and is said to be bound
> to the stateful session bean. The dependency on the extended persistence context is declared by means
> of the PersistenceContext annotation or persistence-context-ref deployment descriptor element.
> The persistence context is closed by the container when the @Remove method of the stateful session
> bean completes (or the stateful session bean instance is otherwise destroyed).
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira