Bug 288 : JTA Transactions - with no current user transaction ... setRollbackOnly(), and runtime exception not honoured,
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.6.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
23/04/2010
Updated 
23/04/2010
Type 
Bug
 
Attachments 
No attachments

Tests from Maurizio using the JtaTransactionManager ...

These two fail ...

public void insertWithException(User user) {
                myDao.insertUser(user);
                if (true) {
                        throw new RuntimeException();
                }
        }

        public void insertWithRollback(User user) {
                myDao.insertUser(user);
                context.setRollbackOnly();
        }
 
Rob 23 Apr 10:58
Patch from Maurizio ...

Maurizio supplied a patch, adding a DummyTransaction.

Rob 23 Apr 11:03
Fixed in HEAD.

Applied patch - Fixed in HEAD.

Thanks Maurizio.

woResponse

Upload a file