This content has been marked as final.
Show 2 replies
-
1. Re: EJB TX_REQUIRES_NEW and XA Transaction
ben.cotton2 Jun 13, 2009 7:56 AM (in response to yanfengzhang816)Generalized, from EJB specification on how TX_REQUIRES_NEW behaves in the context of an existing transaction:
In your case
when the executing SLSB1.method() invokes your SLSB2.method() the container does the following
1. Suspends existing transaction (SLSB1.method())
2. always starts a new transaction (SLSB2.method()), and tries to commit this new transaction before sending SLSB2.method() results to the invoker (SLSB1.method()). -
2. Re: EJB TX_REQUIRES_NEW and XA Transaction
yanfengzhang816 Jun 14, 2009 6:20 AM (in response to yanfengzhang816)ah...Thanks....