|
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 |