EasyBeans

The container must provides a transaction for external interceptors in CMT beans when the "Required" type is used.

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: EasyBeans 1.0 M2, EasyBeans 1.0 M1
  • Fix Version/s: EasyBeans 1.2.0 M2
  • Component/s: APIs
  • Description:
    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

Activity

Hide
Florent BENOIT added a comment - 01/May/08 8:06 PM
delayed
Show
Florent BENOIT added a comment - 01/May/08 8:06 PM delayed
Hide
Florent BENOIT added a comment - 06/May/10 12:01 PM
already fixed
Show
Florent BENOIT added a comment - 06/May/10 12:01 PM already fixed

People

Dates

  • Created:
    26/Jul/06 5:32 PM
    Updated:
    06/May/10 12:01 PM
    Resolved:
    06/May/10 12:01 PM