-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate Session per user web session
PostPosted: Fri Nov 28, 2003 11:06 am 
Newbie

Joined: Sun Sep 07, 2003 8:46 pm
Posts: 10
Would there be a problem in using a hib session for a unique user session and using disconnect between interactions?

I have read the stuff about very short sessions but it effectively means that there is no caching at all (I think).

I was planning to use a hasmap of session objects that the session can be retrieved using the session id from the presentation side.

This doesn't on the face of it seem to contradict any of the advice in the documentations.

Are there any problems with this approach?

I am planning to use this in a clustered environment.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 28, 2003 1:26 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
It depends on what you like to store in session.

What is time to stale of those data?


I store OSUser / OSproperty stuff in the session for long time,
but my users are allowed to login only once at a time, and their profile data do not change frequently.

Other data are retrieved from session opened /closed in filter,
and this session lives for the request.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 28, 2003 1:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
I have read the stuff about very short sessions but it effectively means that there is no caching at all (I think).


Please read the Hibernate documentation and feature list. Hibernate has a two-level cache architecture.


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

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.