-->
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: difference between HibernateSession and Http Session
PostPosted: Wed Jun 23, 2004 12:39 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Hi.

Can anyone tell me the difference between hibernate session and Http session?

What will happen if I close the hibernate Session? Will the value in the Http session be lost?

thanks

andre


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 2:56 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
ouch, please read some book about servlet for example and the hibernate reference guide.
The two things are really different, study your basics...

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 4:07 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
sorry for the stupid question.
It turns out that some bugs causes some weird result.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 24, 2004 1:24 pm 
Newbie

Joined: Tue Jun 01, 2004 8:06 pm
Posts: 9
Location: Hamilton, Ontario, Canada
Sorry but anthony is correct.

A lot of bugs are due to poor Application design.

Closing a hibernate session will not close a HttpSession. But you can do that if you wish.

You should have a Session bean that implements HttpSessionBindingListener. Also this bean must have a method called valueUnbound(HttpSessionBindingEvent event) in which you can close your hibernate session. This method gets called whenever your HttpSession.invalidate() method gets called.


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.