Joined: Thu Feb 17, 2011 5:08 pm Posts: 6
|
Hi guys!
I have some problems with de data and concurrency in my App!!!
I am using JSF 2.0 with Primefaces and Hibernate 3.6
The data obtained by the session is not truth!! if any user have changed the data...
I've tried refresh the object but... when the another user adds an item in a collection, it works!!! but it doesn't work when the user removes the item... the item is obtained always by the other user.
If any user close the session and he login again the data is correctly
If any user close the session and login again the data is right... for a while...
I don't know how I can solve this...
Also....
If for each query... I open the session and I close the session; I must load the objects in lazy mode because in other way I get an error "org.hibernate.LazyInitializationException: could not initialize proxy - no Session" and the performance is the worst!!!
Can you help me?
Thanks
Nicolas
|
|