2 Replies Latest reply on Jul 11, 2012 9:49 AM by Luciano Borges

    @Transactional + TwoPhase Commit

    Luciano Borges Newbie

      Hi All,


      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?