Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-14 Thread Joseph Fifield
06, 2003 11:50 AM Subject: Re: [Hibernate] Unit Testing With ThreadLocal Sessions > > > > > 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 lik

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-14 Thread Eelco Hillenius
alized once, and that your sessions are closed in some other way (like in the Junit tearDown() method. Eelco -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew E. Porter Sent: woensdag 6 augustus 2003 15:59 To: Joseph Fifield Cc: [EMAIL PROTECTED] Su

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-09 Thread Matthew E . Porter
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 want to be able to use the components internal and external to the servlet container. However, I do appreciate the feedback! It helps con

Re: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-08 Thread Joseph Fifield
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 request. For unit testing, I have a base test case class that does the same thing in the tearDown() method. That way, each test case can execute in the

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-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-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-06 Thread Juozas Baliuka
> 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()" returns after output is sent and connection is open/locked too lo