Re[2]: Hibernate Session to User Session

2004-06-08 Thread Carl-Eric Menzel
Riyad Kalla wrote: > I believe that is what I am using now (it seems to be quite popular) but > I don't quite understand the reasoning behind the ThreadLocal approach > (I've actually never used 'ThreadLocal')... can you shed some light on > this? What the mapping between Hibernate Sessions and Us

RE: Hibernate Session to User Session

2004-06-08 Thread Marco Mistroni
n I checked The Struts plugin for hibernate and hibernate samples.. Sorry for not being of any much help :-( Regards marco -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Sent: 08 June 2004 14:54 To: Struts Users Mailing List Subject: Re: Hibernate Session to U

Re: Hibernate Session to User Session

2004-06-08 Thread Riyad Kalla
ory, And each DAO will get its own session associated with its ThreadLocal.. Have a look at hibernate website for patterns on how to use Session Regards,marco -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Sent: 08 June 2004 00:14 To: Struts Users Mailing List Sub

RE: Hibernate Session to User Session

2004-06-08 Thread Marco Mistroni
d with its ThreadLocal.. Have a look at hibernate website for patterns on how to use Session Regards,marco -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Sent: 08 June 2004 00:14 To: Struts Users Mailing List Subject: OT: Hibernate Session to User Session I was

Re: OT: Hibernate Session to User Session

2004-06-07 Thread Riyad Kalla
Carl, Thank you for the corrects, yes after you point it out it seems I did read something very incorrectly. I appreciate you suggestion at the bottom of the message, I will look into this. Best, Riyad Carl-Eric Menzel wrote: I was reading in the Hibernate forums that when you have a WebApp > DA

Re: OT: Hibernate Session to User Session

2004-06-07 Thread Carl-Eric Menzel
> I was reading in the Hibernate forums that when you have a WebApp > DAO > Hibernate > DB design, and you open/close each Hibernate session at > every single DAO method call (what I do now) its actually quite > expensive, This is fairly expensive, but not that much. The *SessionFactory* is expen

RE: Hibernate Session to User Session

2004-06-07 Thread David Friedman
ECTED] Sent: Monday, June 07, 2004 7:14 PM To: Struts Users Mailing List Subject: OT: Hibernate Session to User Session I was reading in the Hibernate forums that when you have a WebApp > DAO > Hibernate > DB design, and you open/close each Hibernate session at every single DAO method call

Re: Hibernate Session to User Session

2004-06-07 Thread Riyad Kalla
bernate sessions with http sessions. Thanks, BAL - Original Message - From: "Riyad Kalla" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 7:13 PM Subject: OT: Hibernate Session to User Session I wa

Re: Hibernate Session to User Session

2004-06-07 Thread Brian Alexander Lee
ot; <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 07, 2004 7:13 PM Subject: OT: Hibernate Session to User Session > I was reading in the Hibernate forums that when you have a WebApp > DAO > > Hibernate > DB design, and

Re: OT: Hibernate Session to User Session

2004-06-07 Thread Axel Stahlhut
Riyad Kalla wrote: I was reading in the Hibernate forums that when you have a WebApp > DAO Hibernate > DB design, and you open/close each Hibernate session at every single DAO method call (what I do now) its actually quite expensive, and is suggested that you attempt to maintain a Hibernate

OT: Hibernate Session to User Session

2004-06-07 Thread Riyad Kalla
I was reading in the Hibernate forums that when you have a WebApp > DAO > Hibernate > DB design, and you open/close each Hibernate session at every single DAO method call (what I do now) its actually quite expensive, and is suggested that you attempt to maintain a Hibernate Session in conjunction w