cancel
Showing results for 
Search instead for 
Did you mean: 

Java API - A question on which API

ghernando
Champ in-the-making
Champ in-the-making
I'm interested in creating a stand-alone app that communicates with Alfresco.
The app would be running on the same machine as the Alfresco server and could possibly run within tomcat as another war, parallel to the Alfresco war.

I know that I can use the Java-API to package code in a jar and then drop that into the Alfresco war to re-wire the workings of the Alfresco.
But can I use the JAVA-API outside of the alfresco war?  Can I write a stand-alone program that uses the Java API – one that doesn't try to use Web Service or CMIS calls?
I think that in that case I must be restricted to use only web services – is that right?
If not, how can I use the Alfresco Java API in a stand-alone way?
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
You cannot use the Alfresco Java API in the standalone way that you are describing. If you want to write a Java application that EMBEDS the Alfresco repository within it, ie, your application and the Alfresco WAR are one-in-the-same, you can do that. Otherwise, you must use one of the remote API's.

The preferred remote API is CMIS which has both a Web Services binding and an Atom Pub RESTful binding. If you cannot or do not want to use CMIS for some reason then you should use Web Scripts. As a last resort, you can consider using the Alfresco Web Services API.

Jeff

amrorabi
Champ in-the-making
Champ in-the-making
hi,

I think we can use "Alfresco SDK" against a standalone Alfresco server, so the developer to get developing with minimal fuss (as wiki said http://wiki.alfresco.com/wiki/Alfresco_SDK_4.0#Purpose_of_the_Alfresco_SDK)