I am currently testing Kodo JDO implementation with Spring framework, I implemented a DAO class, which extends JdoDaoSupport.
The problem is each time when I try to use getJdoTemplate().find(...) the result is unusable, because the persistent manager is closed before the results are returned, and JDO would not allow access to persistent objects when persistent manager is closed.
I know in web environment, there are options like OpenPersistenceManagerInViewInterceptor/OpenPersistenceManagerInViewFilter, but I am not using JDO in web environment (and I need the code to be testable using junit in any case).
Anyone know whether there is a way to fix this problem, or Spring framework is not meant to work with Kodo JDO?


Reply With Quote