title: Connecting to Alfresco with CMIS
body: <p>I'm starting with Alfresco. I installed Alfresco 4 Community edition and I'm trying to connect to it using OpenCMIS. I took this snippet of code from the OpenCMIS page:</p>
  
  <pre><code>    SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
      Map&lt;String, String&gt; parameter = new HashMap&lt;String, String&gt;();
      parameter.put(SessionParameter.USER, "admin");
      parameter.put(SessionParameter.PASSWORD, "admin");
      parameter.put(SessionParameter.ATOMPUB_URL,
              "http://repo.opencmis.org/inmemory/atom/");
      parameter.put(SessionParameter.BINDING_TYPE,
              BindingType.ATOMPUB.value());
      parameter.put(SessionParameter.REPOSITORY_ID,
                "");
  
      Session s = sessionFactory.createSession(parameter);
  </code></pre>
  
  <p>However, I couldn't find out what should be the Repository ID and how to specify Alfresco's URL. Could someone explain it to me? Thank you.</p>