[jboss-user] [JBoss Seam] - Re: manual flushing and state from database
cja987
do-not-reply at jboss.com
Thu Mar 8 14:06:40 EST 2007
Versioning and optimistic locking is also immune to the inevitable race condition of checking for changes before a commit. It does throw an exception though, which makes recovery like offering a "merge" screen somewhat complicated.
Sometimes you still might want to peek outside the current transaction, like if you wanted to poll for changes during an edit session and show a warning. A query in a different entitymanager (like one you get from @PersistenceContext or from JNDI) ought to do the trick, no?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026381#4026381
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026381
More information about the jboss-user
mailing list