Rollback is not working with spring declarative -


i'm working spring declarative approach rollback transaction on exceptions in method. method had multiple dao calls[1,2,3..] , needs maintained in single transaction. i'm trying acheive if exceptions comes in dao call[3], spring has rollback preceeding dao calls. i.e[1,2]

@transactional(propagation = propagation.requires_new, readonly = true,rollbackfor=java.lang.throwable.class)
public void processworkflowactionsinonetransaction(...) throws exception {

// dao call 1 here....

// dao call 2 here....

// dao call 3 here....[throw exception]

}

the above configuration created single transaction mentioned method, not triggered rollback after exception. have attached spring logs better understanding. please me if 1 had similar issue. spring logs


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -