Aaron

First off, sorry for sending this message twice.

The example you link to defines the following life cycle stages.

@Intercepts({LifecycleStage.RequestInit,  
LifecycleStage.RequestComplete})

I don't see those defined in the 1.4 version of Stripes that I'm  
using. Is this Stripes 1.5 stuff?

Alan

On Jun 2, 2008, at 4:30 PM, Aaron Porter wrote:

> Alan,
> Have you looked into writing an Interceptor? There are hooks at every
> stage of the request so that you can perform your own processing. You
> can look at the source code for Stripersist to get an idea of how  
> to do it:
> http://stripes-stuff.svn.sourceforge.net/viewvc/stripes-stuff/ 
> Stripersist/trunk/src/org/stripesstuff/stripersist/Stripersist.java? 
> view=markup
>
> Aaron
>
> Alan Gutierrez wrote:
>> In my first Stripes application, I created a ServletFilter that
>> closes my Hibernate connection.
>>
>> It added more verbiage to WEB-INF/web.xml . It seems like there's a
>> better way to do this. Isn't there some cleanup facility built into
>> Stripes? Am I missing something obvious, like why aren't you allowing
>> Hibernate to close itself?
>>
>> I'm sure this is a common case. Wondering if Servlet filters are the
>> best practice.

--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504  
717 1428
Think New Orleans | http://thinknola.com/



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to