user  

Struts2 Portlet and Hibernate lazy-loading

Parker Grimes
Fri, 09 May 2008 15:54:47 -0700

Hi,

Since portlets cannot use servlet session filters like the Spring
OpenSessionInViewFilter, what is the recommended approach to the Hibernate
lazy-load issue with Struts2 portlets?

The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in
conjunction with their HandlerMapping structure to solve this issue. Is
there something that can be done like this in the Struts2 portlet
interceptor stack?

Thanks,
Parker