Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2278

Accssing the magnolia Repositroy

    XMLWordPrintable

Details

    • Task
    • Resolution: Outdated
    • Major
    • None
    • 3.5.6
    • None
    • None

    Description

      Hi
      i am facing the problem to access the repository of magnoliawhile integrating the magnolia with other web application the following is the code which i have written to acess the repository can please suggest the right way to access the repositroy to other web application

      String configFile = "/home/opt/java/apache-tomcat-5.5.26/webapps/magnolia/WEB-INF/config/repo-conf/jackrabbit-derby-search.xml";
      //modified repHomeDir in repository.xml & magnolia.properties
      String repHomeDir = "/home/msr/opt/repositories/magnolia";
      //modified ProviderURL in repository.xml
      env.put(Context.PROVIDER_URL, "http://localhost:8080/magnolia/jcr");
      Context ctx = new InitialContext(env);
      RegistryHelper.registerRepository(ctx, "magnolia",
      configFile,
      repHomeDir,
      true);
      Repository r = (Repository) ctx.lookup("magnolia");
      SimpleCredentials credentials = new SimpleCredentials(
      "superuser", "superuser".toCharArray());
      Session session = r.login(credentials);
      while accessing the repsitory getting the error
      can you please suggest

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              krishna Krishna LVR
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR