OK so I'm trying to use the JstlView resolver from SpringMVC with a bunch of hibernate DAOs. Thinking that the OpenSessionInViewFilter will save me from the horror of LazyInitializationExceptions, I create these DAOs with lazy collections in them.
I pass the jsp page, the personService from which I get a personList. (This involves doing a session.find with the session being got from SessionFactoryUtils.getSession(sessionFactory,fals e).)
I then iterate across the list and the children. However, as soon as I try to use iterate across a collection which is lazyinitialized I get a LazyInitializationException - no session or session closed.
Unh? How do I fix this?
Thanks


Reply With Quote