users@glassfish.java.net

Re: XAER_RMFAIL: ...global transaction is in the NON-EXISTING state

From: <glassfish_at_javadesktop.org>
Date: Fri, 24 Apr 2009 07:23:06 PDT

The problem is caused by TransactionAttributeType.REQUIRES_NEW.

I've bean A. Bean A used a transaction.

Bean calls x times Bean B.
In Bean B the functions has the annotation "TransactionAttributeType.REQUIRES_NEW".
In after competing Bean B function, the exception will be thrown. Sometimes...

If I remove the "TransactionAttributeType.REQUIRES_NEW", I got NO errors.

Any idea?
[Message sent by forum member 'hegalor' (hegalor)]

http://forums.java.net/jive/thread.jspa?messageID=343538