1 Reply Latest reply on Aug 12, 2004 8:20 AM by aloubyansky

    EJB Container Managed Persistance Not Rolling Back Transacti

    ckokotsis

      Help -

      I have an ejb session bean (A), with a transaction attribute set to required. This invokes ejb session bean (B) which also has a transaction attribute set to required. Session bean (B) persists data to the database via Hibernate v2.1.3. Session bean (A) then persist data to the database via Hibernate.

      Session bean (A) then throws an EJBException. The data persisted within session bean (A) is rolled back. However - the persisted data from session bean (B) is committed to the database.

      Session bean (B) with a transaction attrbiute of required should support the transaction created by session bean (A), and therefore, should roll back its persisted data.


      Any suggestions greatly appreciated?



      Chris