-->
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: Hibernate Session in a Http Session. Problems!!!!
PostPosted: Wed Jan 26, 2011 8:46 am 
Newbie

Joined: Wed Oct 20, 2010 12:06 pm
Posts: 3
Hi guys,

I am developing a web application which uses Hibernate. And i am storing the "Hibernate Session" object in a "Http Session" object. However, i have come across a problem when there are multiple users who update the data. In that case, since the "Hibernate Session" is in "Http Session", data will get updated only for the user who has updated the data unless the other users log out and a new session is created for them.

I am a bit stuck here. I thought of storing the "Hibernate Session" in the application context instead of the session context. However, i have a feeling that the data might become stale with just one hibernate session for the entire application. So, please help me out and guide me through. Will be really grateful.


Regards,
Vishwas


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.