I'm using Spring, Hibernate, and Restlets and getting a bunch of LazyInitializationExceptions. I've even implemented a OpenSessionInView filter and that doesn't help either. Does anyone have a workaround for this?
I am using the Restlet framework (v1.0.1) with the embedded Jetty server as the HTTP Server connector. I'm trying to wire up my resources and DAOs using Spring. My DAOs use Hibernate for persistence. Furthermore, the Representation that I use only writes to the OutputStream when the write() method is called. The OpenSessionInView Filter that I created (similar to Spring's) is attached to the Component, but that doesn't help in dealing with the lazy retrieval because the write() method is not called until after the filter's afterHandle() has already been called. Is anyone else facing this issue? Thanks. Sumit

