You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Parker Grimes <pg...@gmail.com> on 2008/05/10 00:54:06 UTC

Struts2 Portlet and Hibernate lazy-loading

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

Re: Struts2 Portlet and Hibernate lazy-loading

Posted by Nils-Helge Garli Hegvik <ni...@gmail.com>.
Hi!

I don't see why it shouldn't be possible to create a similar
interceptor for Struts 2. It would certainly be the cleanest and best
way to do it.

Nils-H

On 5/10/08, Parker Grimes <pg...@gmail.com> wrote:
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org