In an attempt to possibly alleviate the random AuthenticationCredentialsNotFoundException experienced while using JCR-RMI + Alfresco, I pulled down Spring's .8 JCR Module and gave it a try.
I discovered a few interesting things. First, it is possible to use the JcrTemplate + JCR-RMI…. once (at least with all the configs I tried). If I configure no JcrInterceptor or transactional interceptor then the very first call to the JcrTemplate works fine. Any subsequent calls result in:
org.springframework.dao.DataAccessResourceFailureException: Could not open Jcr Session; nested exception is javax.jcr.RepositoryException: Only one active session is allowed per thread.Done
Caused by: javax.jcr.RepositoryException: Only one active session is allowed per thread.
If I do use JcrInterceptor or transactional interceptor, then presumably my one session gets used up so that when I attempt to use the JcrTemplate for the first time I get the above exception.
Has anyone out there used the Spring JCR Module with Alfresco?
How about Spring JCR Module + JCR-RMI + Alfresco?