Dennis Bijlsma wrote:
> 
> I found a tutorial on this subject at 
> http://www.stripesframework.org/display/stripes/ 
> Hibernate+Infrastructure . What I don't understand is 
> why this example uses a 'plain' Servlet filter, and not a Stripes 
> interceptor. Is there any reason for this?
> 

No idea why, except that it's old and easy (for lazy doc writers!)

We use a Hibernate interceptor in our app.  This is in conjunction with a
few other interceptors, one of them being for security.  Since you have to
be logged in to do anything that would access the database, this allows us
to put the security interceptor "in front" of Hibernate, which is just way,
way smarter (if you ask me) because that way the database & connection pool
are completely out of the picture until authentication.

Don't forget to close your session!!  :)
-- 
View this message in context: 
http://www.nabble.com/Managing-Hibernate-session-in-a-filter-tp24972318p25016764.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to