How to prevent "Local transaction already has 1 non-XA Resource" exception?
- by Zeratul
Hi,
I'm using 2 PU in stateless EJB and each of them is invoked on one method:
@PersistenceContext(unitName="PU")
private EntityManager em;
@PersistenceContext(unitName="PU2")
private EntityManager em2;
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW )
public void getCandidates(final Integer eventId) throws ControllerException {
…