|
From: Rod J. <rod...@in...> - 2004-06-13 07:48:39
|
Von: j=FCrgen h=F6ller [werk3AT] Gesendet: Sa 12.06.2004 23:50 An: spr...@li... Betreff: Re: [Springframework-developer] Real OpenSessionInView (only in view) The Hibernate session will always get discarded properly, even when exceptions get thrown during view rendering. If that doesn't happen in an= y case, it's a bug in either Spring's interceptor/filter implementations (o= r the servlet container's handling of filters, in case of OpenSessionInViewFilter). Juergen ________________________________ Von: spr...@li... im Auftrag von James Cook Gesendet: Sa 12.06.2004 22:42 An: spr...@li... Betreff: RE: [Springframework-developer] Real OpenSessionInView (only in view) Daniel, Is there a document somewhere that summarizes this behavior in Hibernate? I'm trying to understand what the drawbacks to open session in view are. = I don't understand the point you make about the session not being discarded [closed properly?]. > -----Original Message----- > Of Daniel Miller > > Hello, > > One of the current critiques of the OpenSessionInViewFilter/Interceptor > that > ships with Spring is that a Hibernate session is open for the entire > duration of the request (not just during the rendering of the view). Th= e > danger here is that a failed session (due to DataAccessException) will = not > be discarded. ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |