RE: [OS-webwork] Hibernate with interceptor

2003-10-27 Thread Jason Carreira
--Original Message- > From: Matt Ho [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 25, 2003 2:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Hibernate with interceptor > > > John Patterson wrote: > > > I notice that in previous discussions on

Re: [OS-webwork] Hibernate with interceptor

2003-10-27 Thread Philipp Meier
On Fri, Oct 24, 2003 at 01:47:41PM +0100, John Patterson wrote: > I notice that in previous discussions on this list, people talk a lot > about using ServletFilters to open a Session and ensure it is closed. > Is there any problem with using an interceptor to do this? [wrapped your text] This wil

RE: [OS-webwork] Hibernate with interceptor

2003-10-26 Thread Patrick Lightbody
ECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Mountjoy Sent: Sunday, October 26, 2003 1:31 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Hibernate with interceptor Hi Matt and others, > The main issue with using an interceptor is handling chaining. > ... open MyAction session ... &

Re: [OS-webwork] Hibernate with interceptor

2003-10-26 Thread Jon Mountjoy
Hi Matt and others, > The main issue with using an interceptor is handling chaining. > ... open MyAction session ... > ... invoke MyAction ... > ... open ChainedAction session ... > ... invoke ChainedAction ... > ... close ChainedAction session ... > ... close MyAction Session ... > > this proba

RE: [OS-webwork] Hibernate with interceptor

2003-10-25 Thread Drew McAuliffe
? I haven't seen the conductor project yet on java.net. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Francisco Hernandez Sent: Saturday, October 25, 2003 11:20 AM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Hibernate with interceptor I was p

Re: [OS-webwork] Hibernate with interceptor

2003-10-25 Thread Matt Ho
John Patterson wrote: I notice that in previous discussions on this list, people talk a lot about using ServletFilters to open a Session and ensure it is closed. Is there any problem with using an interceptor to do this? The main issue with using an interceptor is handling chaining. Consider t

Re: [OS-webwork] Hibernate with interceptor

2003-10-25 Thread Francisco Hernandez
I was planning on moving session opening and closing into interceptor, right now im opening one session per dao operation which is not good! im also looking into using Spring and then theres the code from Patrick's book, im waiting to see that before I refactor though. John Patterson wrote: I n

[OS-webwork] Hibernate with interceptor

2003-10-25 Thread John Patterson
I notice that in previous discussions on this list, people talk a lot about using ServletFilters to open a Session and ensure it is closed.  Is there any problem with using an interceptor to do this?   ie   public String intercept(ActionInvocation invocation) {     try     {         ...open