-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Data inconsistency (cache) and Concurrency
PostPosted: Tue Apr 17, 2012 10:16 am 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.