|
From: Dave B. <da...@br...> - 2006-11-09 18:55:45
|
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" fl= ag on > the AbstractHandlerMapping class: You can switch that flag to "false" t= o > have any specified interceptors (such as Spring's standard > OpenSessionInViewInterceptor) apply to the Portlet action phase as well= =2E >=20 > 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. >=20 > Juergen > =20 >=20 > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On Beh= alf > Of Dave Brondsema > Sent: Thursday, November 09, 2006 6:44 PM > To: spr...@li... > Subject: [Springframework-developer] OpenSessionInPortletActionIntercep= tor >=20 >=20 > org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor= > applies to servlet requests, and portlet render requests. To my knowle= dge, > 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 sp= ring > framework. Would it be wanted? Should I open a JIRA issue for it? >=20 >=20 >=20 > -- > Dave Brondsema > Software Developer > Cornerstone University >=20 >=20 >=20 > -----------------------------------------------------------------------= -- > Using Tomcat but need to do more? Need to support web services, securit= y? > 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 Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 --=20 Dave Brondsema Software Developer Cornerstone University |