0 Replies Latest reply on May 28, 2009 3:34 PM by Gregory Nikle

    How to rollback transaction in Seam JPA maanged EM?

    Gregory Nikle Apprentice

      Is this good aproach, to rollback transaction managed by Seam in tomcat?


      I mean Hibernate/JPA


                if (getEM().isOpen()) {
                     if (getEM().getTransaction().isActive())
                          getEM().getTransaction().setRollbackOnly();
                }