AnsweredAssumed Answered

Specify the target Alfresco Server

Question asked by pitonyak on Jan 29, 2009
Latest reply on Jan 30, 2009 by pitonyak
I have a standalone Java application that connects to a local instance of Alfresco. How can I connect to an instance at a different location. For example, consider the simple code:
String userID = "admin";
    String password = "admin";
    try
    {
      AuthenticationUtils.startSession(userID, password);
      // Get the content and authoring service
      RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
      for (Store aStore : repositoryService.getStores())
      {
        System.out.println("[Store Address: " + aStore.getAddress() + "][Store Scheme: " + aStore.getScheme() + "]");
      }
    }
    catch (Exception ex)
    {
      ex.printStackTrace();
    }
    finally
    {
      AuthenticationUtils.endSession();
    }
The code connects to localhost. What if I want to connect to 10.5.0.2 rather than localhost?

Outcomes