Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2049

JTA 1.2 compliance: The combination of @Transactional.dontRollbackOn=XXX,rollbackOn=XXX is not respected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0.4
    • 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

          Activity

            People

              romain.manni-bucau Romain Manni-Bucau
              SvetlinZarev Svetlin Zarev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: