Hide
The PostActivate and PreDestroy lifecycle event callbacks with container-managed transaction demarcation must have a transaction if the "Required" type is used. However, when an interceptor class with a tries to use the EntityManager, the exception "javax.persistence.TransactionRequiredException: no transaction is in progress" is thrown.
The container must provides a transaction.
Reference: EJB 3.0 Core Specification - 12.4
Available tests: org.objectweb.easybeans.tests.interceptors.lifecycle.stateful.containermanaged.TestSFCallbackAccess00.test00
org.objectweb.easybeans.tests.interceptors.lifecycle.stateful.containermanaged.TestSFCallbackAccess00.test01
Show
The PostActivate and PreDestroy lifecycle event callbacks with container-managed transaction demarcation must have a transaction if the "Required" type is used. However, when an interceptor class with a tries to use the EntityManager, the exception "javax.persistence.TransactionRequiredException: no transaction is in progress" is thrown.
The container must provides a transaction.
Reference: EJB 3.0 Core Specification - 12.4
Available tests: org.objectweb.easybeans.tests.interceptors.lifecycle.stateful.containermanaged.TestSFCallbackAccess00.test00
org.objectweb.easybeans.tests.interceptors.lifecycle.stateful.containermanaged.TestSFCallbackAccess00.test01