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?
This seems to be a Hibernate issue. The changes are rolled back using CMP.