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
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
> 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
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
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
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(),
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
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
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...
> >
>