-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I think this would be cool to add into some 'OR contrib' package. Seems to me like a number of people have posted messages here talking about this, and to have at least some skeleton solutions available would be good. Anyone else on the same boat? Neil On Thursday 16 Jan 2003 3:51 pm, Norrman Per wrote: > Hi, > > Thank you for the code. I used parts of your solution and combined it with > a ServletFilter that do the commit/rollback stuff. I made SessionWrapper a > public > class and also included a boolean success flag; the SessionWrapper is also > stored > in the ServletRequest. When a Hibernate exception occurs, the > SessionWrapper#success > field is set to false, and an ApplicationRuntimeException is thrown. The > servlet filter > post processing either commit or rollback depending on the success flag. > > In effect, I now have transactions of single request scope for one or more > pages. The code is not quite ready yet, but if anyone is interested .... > > > /Per Norrman > > > -----Original Message----- > > From: Eric Everman [mailto:[EMAIL PROTECTED]] > > Sent: Friday, January 10, 2003 5:10 PM > > To: [EMAIL PROTECTED] > > Subject: [Tapestry-developer] Tapestry and O/R persitence services > > > > > > Norrman- > > > > I wrote a Tapestry extension for Hibernate sessions, but I > > have not tried > > it yet in 2.3. It creates Hibernate sessions on demand with > > a scope of a > > single page for a single request. Sessions are automatically > > committed > > when the page renders or when you switch pages (cycle.setPage()). > > > > My source code is attached - let me know if you have any > > problems using it > > in 2.3. > > > > Eric Everman > > ########################################### > > This message has been scanned by F-Secure Anti-Virus for Microsoft > Exchange. For more information, connect to http://www.F-Secure.com/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache Guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer - -- Regards, Neil Clayton (PS: If you see strange text you don't understand underneath my email, don't worry - it's just my PGP signature) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+JymjLXcfQF3yrNoRAjAQAJ4gpeokI93+xpYylnp2AtdjTsHU2wCfRDH+ oNthJqSgX/BaHaNCrVQfBS4= =WHPu -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
