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.  [ 2 posts ] 
Author Message
 Post subject: Long Session and First Level Cache behaviour
PostPosted: Tue Jul 26, 2005 11:56 pm 
Newbie

Joined: Sun Jun 19, 2005 9:30 pm
Posts: 3
Location: Toronto
Hi,

We are working on a Web Application project, using the concept of "long sessions".
In this process we experienced an unexpected behaviour of the Hibernate Session:

- we store the Hibernate Session in the HttpSession.
- in consecutive requests we are connecting and disconnecting from the Hibernate Session.

- we were expecting that an object, once loaded in the Hibernate Session, will remain loaded as long as the Session is not closed.

However we found out that this is true, only when the "think time" is very short.

If "think time" is longer, when we reconnect to the session in the next request, the object is no longer available and a new database query is issued.

Is this the intended behaviour of Session cache, or we are doing something wrong?

Hibernate Version: 3.0.5
Database: Oracle 9i

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 27, 2005 1:53 am 
Newbie

Joined: Sun Jun 19, 2005 9:30 pm
Posts: 3
Location: Toronto
...after one more review of the code --> beginners mistake in the HibernateUtil class.

Session Cache works perfectly!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.