Read Integration Java Content Repository and Spring
According to the article, Springs JCR Module provides (summarized):
- JcrTemplate which allows execution of JcrCallbackand exception handling (transforming checked JCR exceptions into unchecked Spring DAO exceptions).
- Session and can be easily used as a replacement. Moreover the template is aware of thread-bound sessions which can be used across several methods, functionality very useful when using a transactional repository.
- RepositoryFactoryBean which configures, starts and stops the repository instances.
- SessionFactory which unifies the Repository,Credentials and Workspace interfaces and allows automatic registration of listeners and custom namespaces.
- Spring declarative transactional support for repositories that implement the (optional) transactional feature.
- OpenSessionInView interceptor and filter which allow the usage of the same session per thread across different components.