I don't understand why you need any user transaction.

If you are using a value object that contains the version number, doesn't it go 
like this:

TX1 and TX2 both retrieve value object and use it in a web form.

User 1 and User 2 make independent changes.

User 1 commits, via a session bean method which requires a transaction.
Entity is retrieved and update attempted.
Commit works ok because version numbers match.
Version number is incremented.

User 2 commits, via same session bean method.
Entity is retrieved and update attempted.
Version number does not match, so exception is thrown and transaction rolls 
back.

Why should any user transaction be required?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861891#3861891

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861891


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to