You can use entityManager.clear() to detach all (!) entities from the entity manager.
Changes to detached entities will only be written after a merge to the db.
A much cleaner soluction (IMHO) to the problem are Seam's long running transactions.
Regards
Felix
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033853#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...