Having for eg:
@Stateless
public class EntityRepositry{
@Inject
EntityManager em;
public void create(Entity e){
// op1 success
// op2 failed
}
}
As Stateless EJB are by default transactional, I would understand how the transaction if a system exception (like OptimisticLockedException) is thrown, will be rollbacked? How em.getTransaction().rollback will be called implicitly?
Thanks in advance.