|
From: Juergen H. <ju...@in...> - 2006-11-09 18:59:32
|
Thanks for pointing that out! I'll fix that for Spring 2.0.1. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Dave Brondsema Sent: Thursday, November 09, 2006 7:55 PM To: spr...@li... Subject: Re: [Springframework-developer]OpenSessionInPortletActionInterceptor I wasn't aware of that. Thanks! org.springframework.web.context.request.WebRequestInterceptor has a Javadoc note that is misleading, then. It says that it /cannot/ intercept the action phase. Juergen Hoeller wrote: > Note that there is am "applyWebRequestInterceptorsToRenderPhaseOnly" > flag on the AbstractHandlerMapping class: You can switch that flag to > "false" to have any specified interceptors (such as Spring's standard > OpenSessionInViewInterceptor) apply to the Portlet action phase as well. > > That said, we do not actually recommend to use Open Session in View > for the Portlet action phase. It's usually preferable to have the > action phase purely operating with transaction scopes, and only use > Open Session in View for lazy loading during the actual view rendering. > > Juergen > > > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On > Behalf Of Dave Brondsema > Sent: Thursday, November 09, 2006 6:44 PM > To: spr...@li... > Subject: [Springframework-developer] > OpenSessionInPortletActionInterceptor > > > org.springframework.orm.hibernate3.support.OpenSessionInViewIntercepto > r applies to servlet requests, and portlet render requests. To my > knowledge, there is no interceptor for portlet action requests. I've > created an OpenSessionInPortletActionInterceptor for my own use (based > heavily on the > OpenSessionInViewInterceptor) and would like to contribute it to the > spring framework. Would it be wanted? Should I open a JIRA issue for it? > > > > -- > Dave Brondsema > Software Developer > Cornerstone University > > > > ---------------------------------------------------------------------- > --- Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216 > 42 _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > -- Dave Brondsema Software Developer Cornerstone University |