0

Already have implemented Alfresco CMIS to create, delete and modify files connecting to the Alfresco Community (server), but we need to include/embed the Alfresco Repository to our project, we DON'T need the share interface or REST API, only the repository.

Is is possible or there is other alternatives?

Maicon Carraro
  • 499
  • 4
  • 12
  • Do you need explicitly the Alfresco repository or do you just need a content repository? – Thomas Dec 23 '15 at 09:22
  • @Thomas I prefer Alfresco because I already implemented Alfresco CMIS, but what'd you suggest? – Maicon Carraro Dec 23 '15 at 11:34
  • Alfresco is definitely very powerful, but challenging to embed and to strip down to your actual requirements. For an embedded repo I would rather go for Apache Jackrabbit Oak. It can be easily embedded as a Jar dependency (also scaled out later on) and can be accessed through the javax.jcr API. See https://jackrabbit.apache.org/oak/docs/use_getting_started.html for details on how to include it. – Thomas Dec 24 '15 at 10:23
  • Thank you, I will take a look :) – Maicon Carraro Dec 24 '15 at 19:29

1 Answers1

1

If you don't want Share, just don't deploy the Share war file. It's not necessary to run the core webapp.

Not including the rest API would be more difficult. I believe it would be possible to just include the core services, but it may be more trouble than it's worth. Why would you want to exclude the Rest API?

If you are dead set on stripping down the product, I would recommend disabling context files and commenting servlets out of the web.xml until you get a more "lightweight" version of the product.

matthew p.
  • 405
  • 2
  • 9
  • I didn't explain clear enough, we have the Alfresco Community deployed at our server, I know there is many modules (war), but I want to embed the Alfresco.war (manager/repository) inside my project. – Maicon Carraro Dec 23 '15 at 11:36
  • You would need to use the alfresco.war as the base and build your project around it. Think about it this way: you're application probably has a lot less code than Alfresco, even a stripped down Alfresco. It's going to be easier to add your code to Alfresco rather than vice-versa. – matthew p. Dec 23 '15 at 11:40