Thanks! I'll look at this project. That is indeed doing exactly the same. A change I recommend in the Spring OpenSessionInView filter is to close the hibernate session after the request. Spring is not going to close the session (the method names are getting a little funky with Spring sometimes) although there is something called "releaseSession". If you don't close it then all the objects you loaded will be kept in memory until something will close it later I guess.
Henri. On 4/14/06, James Carman <[EMAIL PROTECTED]> wrote: > > There's also an OpenSessionInViewFilter in "tapernate"... > > > http://www.carmanconsulting.com/svn/public/tapernate/trunk/src/java/com/carm > anconsulting/tapernate/filter/OpenSessionInViewFilter.java > > > -----Original Message----- > From: Henri Dupre [mailto:[EMAIL PROTECTED] > Sent: Friday, April 14, 2006 11:25 PM > To: Tapestry users > Subject: Re: Open Session in View - Tapestry > > I just posted few days ago in the wiki some hivemind code that implements > the spring open session in view in Hivemind. > > Just check in Tapestry4/Spring. > > Henri. > > > On 4/12/06, Sukma Agung Verdianto <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I'm trying to implement Open Session in View in tapestry application. > > There is a way to create servlet filter to open and close the db > session. > > (I'm using ServletRequestServicer) > > My question is, how can I catch the page exception to rollback the > > transaction, because > > tapestry ExceptionHandling catch that exceptin and never throw it as > > servlet > > exception. > > Sorry for my bad english :( > > > > Rdgs, > > Verdianto > > > > > > > -- > Thanks, > > Henri. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks, Henri.