AnsweredAssumed Answered

JCR - aplication-context.xml?

Question asked by anita.platos on Jan 22, 2014
Latest reply on Jan 22, 2014 by anita.platos
I want to try to make run the program of the standard samples "SDK FirstJCRClient". It starts like this:


public static void main(String[] args) throws Exception
{
     ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/application-context.xml");

     Repository repository = (Repository)context.getBean("JCR.Repository");

     Session session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
   


I don´t understand the concept of using application-context.xml. Do I have to put there information like the host name and port?. Somebody can tell me what do I have to put in that file to make run the program?. I have been looking it on internet but I don´t understand how does it work!
Thank you so much!

Outcomes