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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -