EasyBeans is an open source implementation by ObjectWeb of the EJB3 container specification.

Project

Developer

Wiki

About

|
If you were logged in you would be able to see more operations.
|
|
|
EasyBeans
Created: 26/Jul/06 05:32 PM
Updated: 01/May/08 08:06 PM
|
|
| Component/s: |
APIs
|
| Affects Version/s: |
EasyBeans 1.0 M1,
EasyBeans 1.0 M2
|
| Fix Version/s: |
None
|
|
|
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
|
|
Description
|
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 » |
|