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