This content has been marked as final.
Show 2 replies
-
1. Re: Transaction demarcation on EJB3/Seam methods
thejavafreak Oct 3, 2007 11:27 PM (in response to clemente.cioffi)What kind of transaction demarcation/ annotation do you want to use?
Doesn't EJB3 by default already demarcate transaction before and after the method is invoked? -
2. Re: Transaction demarcation on EJB3/Seam methods
clemente.cioffi Oct 4, 2007 5:14 AM (in response to clemente.cioffi)HI,
I'd like using this kind of annotation:
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW).
Consider that I have this situation:
1)I call a first method of ejb3/seam marked with the above annotation.
2)Inside that method I call another method that I want starts in a different transaction and then I mark also this method with the same annotation.
The problem is that there is always a unique transaction and the commit operation is carried out at the end of first method.
Thanks a lot
Bye