Jaikiran Pai wrote:
I am using JBoss AS 6 Final, but I can not find jars for RestEasy in JBoss installed folder
It's in JBOSS_HOME/server/<servername>/deployers/resteasy.deployer folder.
Paul Sturrock wrote:That will only work on databases that support select ...for update. There is also a flaw in your logic: how do you recover when the process that set the current_user field dies before it set it back to null?
Instead, since this is JPA, you should set the lock mode to be pessimistic.