Hi Roman

> When does the commit happens in case of container managed transaction 

> Required: ?

Depends on the caller/client already having a transaction or not.
If it has, the method executes in that TX context and there is
no commit at method return time. If the client has no TX the
container creates one, executes the method and just before
returning to the client commits.

> RequiredNew: ?

Ever on method return time, since, when the client already has
a TX, the container suspends it, creates a new one, executes
the method in that new TX and commits it at return time, but
resumes the old clients TX. If the client has no TX, the container
behaves as with Required.

regards

Georg
 ___   ___
| + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to