Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Imagine you have a cdi bean method annotated with
@Transactional(rollbackOn={RollBackException.class}, dontRollbackOn={RollBackException.class})
According to the JTA 1.2 spec, section 3.7, the transaction must not be marked for roll back:
The following will cause the transaction to be marked for rollback for all runtime exceptions and all SQLException types except for SQLWarning. @Transactional(rollbackOn={SQLException.class}, dontRollbackOn={SQLWarning.class})
Yet TomEE marks the transaction for roll back.
Attachments
Issue Links
- relates to
-
TOMEE-2051 JTA 1.2 compliance: @Transactional.rollbackOn regression
- Resolved