This content has been marked as final.
Show 2 replies
-
1. Re: EJB methods and transactions
javacoryd May 29, 2008 4:13 PM (in response to koatto)I assume your SFSB is the action handler for your web page. Your action gets invoked in the
Invoke Application
phase of the JSF lifecycle and by default, Seam wraps that call in a transaction. Your SLSB method then runs, by default, within the transaction started by Seam and isn't committed until after the phase is completed.You can add:
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)To your SLSB to get the behavior you want.
Cory.
-
2. Re: EJB methods and transactions
koatto May 29, 2008 4:57 PM (in response to koatto)thankyou very mutch, it perfectly solved.