Just do all those things within a transaction. Locks should be acquired automatically. Adrian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104482#4104482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104482