-->
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.  [ 4 posts ] 
Author Message
 Post subject: relations between Hibernate session and http session
PostPosted: Wed Apr 13, 2005 8:49 am 
Newbie

Joined: Wed Apr 13, 2005 2:43 am
Posts: 9
Hi everyone,

I'm quite new to hibernate, and now not yet clear what is the relations between hibernate session and http session?

many thanks!

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 10:22 am 
Beginner
Beginner

Joined: Tue Apr 05, 2005 12:09 pm
Posts: 48
Location: Slovakia (SK), Košice (KE)
Hi

I use one hibernate session per one HTTP session (using MyFaces) while my forms are stored in managed beans with persistent objects in session scope too.

Martin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 10:26 am 
Regular
Regular

Joined: Thu Nov 13, 2003 2:55 am
Posts: 71
Location: Sweden
http://www.hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 15, 2005 12:03 pm 
Beginner
Beginner

Joined: Tue Apr 05, 2005 12:09 pm
Posts: 48
Location: Slovakia (SK), Košice (KE)
hmm .. so according to my previous reply I was using the session-per-user-session antipattern :-(. Therfore I am rewriting my app to use session-per-request-with-detached-objects (while all my backed-beans will be stored still in the session scope and the hibernate session will be closing in the servlet filter).


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