Hi,
I am new to remoting with Spring. I am trying to expose some services using the spring HttpInvoker. The service is setup exactly as given in the spring reference documentation. (http://www.springframework.org/docs/.../remoting.html)
Our app uses hibernate for persistence and as such has quite a few lazy loaded collections. With HttpInvoker I am constantly getting -
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: model.Account.characters - no session or session was closed
what do I need to do to avoid these exceptions with HttpInvoker and return the collections to the client ?
Any help is appreciated.
Thanks in advance


Reply With Quote