Struts2 Portlet and Hibernate lazy-loading

View: New views
2 Messages — Rating Filter:   Alert me  

Struts2 Portlet and Hibernate lazy-loading

by Parker Grimes-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by Nils-Helge Garli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <pgrimes@...> 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@...
For additional commands, e-mail: user-help@...

LightInTheBox - Buy quality products at wholesale price