cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect to Alfresco Repository

rishidx
Champ in-the-making
Champ in-the-making
Hi All,

I am a newbie in Alfresco. My requirement wants me to connect to Alfresco Repository and export its contents as XML. I read the arteicle http://wiki.alfresco.com/wiki/Introducing_the_Alfresco_Java_Content_Repository_API. which says methods to connect to Alfresco Repository. I followed the same process as told in the above link.

Initially i was getting error: FileNotFound as no classpath was set. then i set the classpath in eclipse and then there was propertyValue Error.

How can I connect to Alfresco Repository through Java program? Can anyone please specify step by step process. Pardon for my bad english.

Thanks
Rishi
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
You can refer SDK examples like SDK FirstFoundationClient, SDK FirstWebServiceClient,SDK WebServiceSamples

have you checked those?
http://wiki.alfresco.com/wiki/Alfresco_SDK

rishidx
Champ in-the-making
Champ in-the-making
Hi thanks for your reply. I refered to this link also: http://wiki.alfresco.com/wiki/Alfresco_SDK. I am not able to findout What is use of global properties file, classpath: alfresco/application-context.xml etc.

mitpatoliya
Star Collaborator
Star Collaborator
alfresco-global.properties is used to identify the location of alf_data folder of your alfresco instance.
webserviceclient.properties is for pointing out the alfresco instance which you want to connect to.
It is similar to the endpoint in the webservices which will indicate which alfresco instance to be communicated with.