Spring web request interceptor that binds a JDO PersistenceManager to the
thread for the entire processing of the request. Intended for the "Open
PersistenceManager in View" pattern, i.e. to allow for lazy loading in
web views despite the original transactions already being completed.
This interceptor makes JDO PersistenceManagers available via the current thread,
which will be autodetected by transaction managers. It is suitable for service
layer transactions via
org.springframework.orm.jdo.JdoTransactionManager or
org.springframework.transaction.jta.JtaTransactionManager as well
as for non-transactional read-only execution.
In contrast to
OpenPersistenceManagerInViewFilter , this interceptor
is set up in a Spring application context and can thus take advantage of
bean wiring. It inherits common JDO configuration properties from
org.springframework.orm.jdo.JdoAccessor , to be configured in a
bean definition.
author: Juergen Hoeller since: 1.1 See Also: OpenPersistenceManagerInViewFilter See Also: org.springframework.orm.jdo.JdoInterceptor See Also: org.springframework.orm.jdo.JdoTransactionManager See Also: org.springframework.orm.jdo.PersistenceManagerFactoryUtils.getPersistenceManager See Also: org.springframework.transaction.support.TransactionSynchronizationManager |