cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Via RMI

rdanner
Champ in-the-making
Champ in-the-making
For those interested:

I have put alfresco behind the JCR-RMI library from jackrabbit.
All i had to do was make a simple bean to register the repository and then leverage their client on the remote end.


I have a build for just the RMI-JCR and the additional alfresco config and classes.

I had done a significant portion of an RMI wrapper before I ran in to jackrabbit (I should be looking a little harder before i leap).

Works like a charm.  Their library does not use remote activation which I would like to include for robustness sake.
62 REPLIES 62

lfuller
Champ in-the-making
Champ in-the-making
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?

raju_myadam
Champ in-the-making
Champ in-the-making
Hello Russ,

I am unable to download "jcr-rmi-alfresco.zip" file. Could you please provide me the access to this?

Thanks in advance.

Regards,
Raju

rdanner
Champ in-the-making
Champ in-the-making
Hello Russ,

I am unable to download "jcr-rmi-alfresco.zip" file. Could you please provide me the access to this?

Thanks in advance.

Regards,
Raju

Raju

You should be able to download the RMI projects here.
http://forge.alfresco.com/frs/?group_id=21

We initially looked really hard at JCR at my organization and ultimately decided it wasn't the way to go for us.
* object oriented interface rather than service oriented so it's pretty fine grained (bad for remoting)
* didn't perform as well as the Alfresco Foundation API(s)
* has enough thread related issues to be painful
* doesn't seem to be getting a whole lot of attention at the moment.

I think what it boils down to is that standards around content management are the right thing to strive for but in recent years I've come to wonder if JCR is really something that is all that important in the game.  What it buys you is some basic interoperability between content stores and not a whole heck of a lot more.

Just curious… what is drawing you to JCR?