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
|