[jboss-user] [JBoss Seam] - Rollback not work. why?

jimmy6 do-not-reply at jboss.com
Thu May 24 03:11:41 EDT 2007


I am using jboss-seam-1.2.1.GA/JPA example for testing the @ApplicationException(rollback=true). The following is my code. The problem is the user will store in DB without rollback. Why?

em.persist(user);
            facesMessages.add("Successfully registered as #{user.username}");
            registered = true;
            throw new Error();

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048140#4048140

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048140



More information about the jboss-user mailing list