tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetlin Zarev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TOMEE-2049) JTA 1.2 compliance:The combination of @Transactional.dontRollbackOn=XXX,rollbackOn=XXX is not respected
Date Fri, 02 Jun 2017 09:32:04 GMT
Svetlin Zarev created TOMEE-2049:
------------------------------------

             Summary: JTA 1.2 compliance:The combination of  @Transactional.dontRollbackOn=XXX,rollbackOn=XXX
 is not respected
                 Key: TOMEE-2049
                 URL: https://issues.apache.org/jira/browse/TOMEE-2049
             Project: TomEE
          Issue Type: Bug
            Reporter: Svetlin Zarev


Imagine you have a cdi bean method annotated with 
{code}
@Transactional(rollbackOn={RollBackException.class}, dontRollbackOn={RollBackException.class})
{code}

According to the JTA 1.2 spec, section 3.7, the transaction must not be marked for roll back:
{code}
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})
{code}

Yet TomEE marks the transaction for roll back.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message