[Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-06 Thread Matthew E . Porter
Greetings. I am interested in hearing how people unit test method that call session.save(), update(), and delete() when the session is provided via the ThreadLocal pattern. For me, the primary question is whether or not the method containing the session method calls actually closes the databa

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-06 Thread Juozas Baliuka
on, and they don't need to worry about closing it at the end. > > Hope this helps... > > Joe > > - Original Message - > From: "Matthew E.Porter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 05, 2003 11:12 PM > S

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-06 Thread Schnitzer, Jeff
> From: Juozas Baliuka [mailto:[EMAIL PROTECTED] > > > I don't close the session at all in any of my business logic methods. In > > deployment, a servlet filter _always_ closes the session at the end of > the > > It looks like not the good way for performance. As I understand > "doFilter()" retu

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-07 Thread Joseph Fifield
PROTECTED]> Sent: Wednesday, August 06, 2003 9:59 AM Subject: Re: [Hibernate] Unit Testing With ThreadLocal Sessions > My only concern with this is that the business logic component is now > coupled with the web tier. For this project (which is basically a > framework), we wan

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-08 Thread Eelco Hillenius
quests per second without any real dips. Hope that gives you confidence ;) Eelco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juozas Baliuka Sent: woensdag 6 augustus 2003 17:50 To: Joseph Fifield; [EMAIL PROTECTED] Subject: Re: [Hibernate] Unit Te

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-08 Thread Joseph Fifield
m: "Matthew E.Porter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 11:12 PM Subject: [Hibernate] Unit Testing With ThreadLocal Sessions > Greetings. I am interested in hearing how people unit test method that > call session.save(), update(),

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-09 Thread Matthew E . Porter
sing the same session, and they don't need to worry about closing it at the end. Hope this helps... Joe - Original Message - From: "Matthew E.Porter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 11:12 PM Subject: [Hibernate] Unit Te

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-14 Thread Eelco Hillenius
t; From: "Matthew E.Porter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 05, 2003 11:12 PM > Subject: [Hibernate] Unit Testing With ThreadLocal Sessions > > >> Greetings. I am interested in hearing how people unit test method >> tha

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-14 Thread Joseph Fifield
r as the app running in deployment (i.e. each test case is like > a > > separate "request"). The result is each test case executes using the same > > session, and they don't need to worry about closing it at the end. > > > > Hope this helps... > > >