--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
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
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 ...
&
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
? 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
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
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
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