|
From: Juergen H. <ju...@in...> - 2006-11-09 17:50:33
|
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.OpenSessionInViewInterceptor 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 |
|
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 |
|
From: Dave B. <da...@br...> - 2006-11-09 18:55:45
Attachments:
signature.asc
|
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 |