Hi,
Is this good approach to commit and roolback transaction after failure in Seam JPA on tomcat?
public boolean authenticate() {
boolean ret = false;
try {
.....
getEM().getTransaction().commit();
} catch(Exception e) {
identity.logout();
if (getEM().getTransaction().isActive())
getEM().getTransaction().setRollbackOnly();
}
return ret;
}