Hi,
I have never changed the transaction isolation levels myself, but I did ran into the StaleObjectException during concurrency.
Have you tried something like this:-
Code:
myDAOmethod1() throws Exception(){
//some stuff
}
mymanager method1(){
try{
//call myDAOmethod1();
catch(Specific hibernate exception like stale object exception){
get a new Hibernate session. Eviction of the object does not help.
Session s = //somehow discard the session that is bound to this thread and get a new ones.
and call the myDAOmethod1();
}
Not sure if this is the right way to do or not but this helped in the past. In our application we sometimes do as above but most of the times we throw the same error to the user saying something like:- "Concurrency issue retry again."
Hope this helps,
Latha.