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();