cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco - API Access From Another JVM?

subwiz
Champ in-the-making
Champ in-the-making
I had a glance of the Alfresco APIs. Except WebServices, other API methods allowed by Alfresco don't seem to allow access from another JVM instance. Is this true?
3 REPLIES 3

davidc
Star Contributor
Star Contributor
It's also possible to use the JCR API via RMI using a library such as JCR-RMI found in Apache Jackrabbit.

sjavey
Champ in-the-making
Champ in-the-making
What are our options for calling Alfresco from another JVM? Is JCR-RMI found in Apache Jackrabbit the only option? I'm not sure that WS will be viable (but perhaps I'm wrong). Our current platform is JDK 1.4, and at this point we cannot upgrade to JDK 1.5. So we have to run Alfresco in a different JVM.

As far as Web Services are concerned, is there an API that lets us pass a handle to the content (e.g., a file name or a URL) instead of a byte array?

Thank you.

dschmalz
Champ in-the-making
Champ in-the-making
What are our options for calling Alfresco from another JVM? Is JCR-RMI found in Apache Jackrabbit the only option? I'm not sure that WS will be viable (but perhaps I'm wrong). Our current platform is JDK 1.4, and at this point we cannot upgrade to JDK 1.5. So we have to run Alfresco in a different JVM.
You might still want to give WS a try, this is not such a hard integration. If you want to code in Java, the JCR-RMI seems the only choice.

As far as Web Services are concerned, is there an API that lets us pass a handle to the content (e.g., a file name or a URL) instead of a byte array?

Take a look in the Alfresco SDK in the Web Services samples project. Actually, once you have created a session ticket using the AuthenticationUtils class, you can append it as a parameter to the download URL of any content stored in Alfresco and retrieve an InputStream directly from the URL connection.