cancel
Showing results for 
Search instead for 
Did you mean: 

Embed Alfresco API into self-developed application

cylam
Champ in-the-making
Champ in-the-making
I would like to embed Alfresco into a self-developed java application, so that our application can retrieve the contents from repository directly using JavaAPI (rather than using ReST). My Idea is that we have more than one application server running the same application with embedded Alfresco JavaAPI, but can link up the same repository.

Is it possible to have such structure? or there should have some standard way for implementing such requirement?

Thanks!
yan Lam
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
Unfortunately no, Alfresco repository can be embedded only one time and in a unique custom application.
If you need to use more than one instance you need to setup a standard cluster of Alfresco as documented.

Hope this helps.

jbarmash
Champ in-the-making
Champ in-the-making
If you can get the embedded Alfresco to work in a cluster configuration with other instances of the app, then you should be ok.   

I.e. App Server Host A Runs application A that talks to embedded Alfresco that acts as a Node A in a cluster with Node B, which is accessed by Application A on App Server Host B.

I don't know of anybody who has done this specifically, though don't see why this wouldn't work.  It is definitely not something that is being tested for, but I don't know of any fundamental reasons for why that wouldn't work.