This content has been marked as final. Show 2 replies
I'm trying create a TwoPhase Commit, but, it appears not working fine. Look my structure:
-- with two business controller
-- a method with @Transactional annotation, inside this method I call the methods from business controler, both are transactional. (Ex: bc1.insert(...) and bc2.insert(...) )
The methods insert are into a try/catch structure, if the first method goes wrong the second did not execute because the exception, but, if the first method goes ok and the second goes wrong the rollback did not occurs.
Someone can explain why is it happening?