I think you'll encounter problems during install/update when the session filter 
fail to find the root WebApplicationContext. Since its started by your module 
its not around when the filter is started.

It works after install/update is done and you restart.

What you can do is configure the session filter in applicationContext.xml or 
similar and then use the installation aware proxy filter to use it only once it 
becomes available. The session filter is based on GenericFilterBean so you can 
configure all its init params as plain properties in applicationContext.xml.


Regards,

Tobias Mattsson
Senior Software Engineer
Magnolia International Ltd.

Join us for our next Webinar:
http://www.magnolia-cms.com/landing/webinar-navy.html

On Nov 7, 2011, at 7:10 PM, Magnolia Forums (on behalf of Claudia Guerrero) 
wrote:

> I take back what I said, the OpenSessionInViewFilter works just fine if I add 
> it to the web.xml (still it might be a better idea to move that somewhere 
> else like using the filter decorator to add to the filter chain). I just had 
> to restart a couple of times for Hibernate to work fine.
> 
> Thanks everyone for their input.
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=e8fc4df7-15bd-49de-ae4f-27dc66ed6a45
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to