I'm trying to develop a Quartz job scheduler app, using Spring's HibernateDaoSupport.
Basically, I've developed a DAO package (jar), using HibernateDaoSupport, that works perfectly when I use it in a Spring MVC app, with an OSIV interceptor, but when I try to use it in any other Spring-configured application (such as my Quartz scheduler), I get LazyInitializationExceptions any time I try to access a proxied property. Normally, I would post this in the Spring developer forums, but noone there seems to have an answer. Has anyone here managed to use HibernateDaoSupport, and how did you overcome the (seemingly inevitable) LIE exceptions? I've been trying to figure this out for weeks now, with no luck...
Please help, if you can. I may have to kill myself.
|