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

    @Transactional + TwoPhase Commit

    lucianoborges

      Hi All,

       

      I'm trying create a TwoPhase Commit, but, it appears not working fine. Look my structure:

       

      Application.class

      -- 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?

       

      Thanks,

      Luciano