<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I get access to the Repository? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25009#M12309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even though the Repository API is aimed at providing services, it seems very tighly coupled with the Web Client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If alfresco.war is deployed in Tomcat - can Repository API be accessed from another context?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, how?&amp;nbsp; If no, does that mean I have to drop my app into exploded Alfresco.war and hook into it in web.xml?&amp;nbsp; Sounds like quite a hassle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for repository access,:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does not work - it seems awfully outdated.&amp;nbsp; It says to get Repository via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationContext context = new ClassPathXmlApplicationContext("classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg/alfresco/jcr-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Repository repository = (Repository)context.getBean("JCR.Repository");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this does not work.&amp;nbsp; jcr-context.xml no longer gets packaged with alfresco.war.&amp;nbsp; The "org" part was removed from the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An updated version of getting Repository appeared here "&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API&lt;/A&gt;&lt;SPAN&gt;" end of January '06:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ApplicationContext appContext = new ClassPathXmlApplicationContext("alfresco/application-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ServiceRegistry registry = (ServiceRegistry)appContext.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (registry.isServiceProvided(ServiceRegistry.NODE_SERVICE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeService nodeService = registry.getNodeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tried this yet, about to do so.&amp;nbsp; Still, the main problem is deploying Alfresco as purely a service layer.&amp;nbsp; We do need the web client, but only for Administrative users.&amp;nbsp; Most other access would be done from our web app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2006 14:55:05 GMT</pubDate>
    <dc:creator>alexeyg</dc:creator>
    <dc:date>2006-02-06T14:55:05Z</dc:date>
    <item>
      <title>How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25006#M12306</link>
      <description>Is there a way to access the Repository without using the Web Client?Can I get it from JNDI somehow?&amp;nbsp; I tried this but it did not work: http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API</description>
      <pubDate>Fri, 03 Feb 2006 22:03:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25006#M12306</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-03T22:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25007#M12307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to build a custom bridge between Alfresco JCR and a Web App.&amp;nbsp; Administrators will use Web Client to work with the repository, but most of the time another web app would need to get stuff from it.&amp;nbsp; I am having some major problems discerning Presentation and Business layers of Alfresco.&amp;nbsp; Is there a nice clean way to get access to the JCR programmatically?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2006 22:12:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25007#M12307</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-03T22:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25008#M12308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The article &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API&lt;/A&gt;&lt;SPAN&gt; provides details on how to access the Alfresco JCR interface from within the same process as the client.&amp;nbsp; The JCR Repository interface (the entry point) is accessed via a Spring configured Bean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also access remotely via a JCR "remoting" bridge such as the one provided in Jackrabbit.&amp;nbsp; Others have tried this approach e.g. &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/forums/viewtopic.php?t=488" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/forums/viewtopic.php?t=488&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I haven't personally attempted this yet, but it's something we'd like to incorporate in future builds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Repository API's focus solely on providing services (no UI or UI dependencies).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2006 14:22:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25008#M12308</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-02-06T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25009#M12309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Even though the Repository API is aimed at providing services, it seems very tighly coupled with the Web Client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If alfresco.war is deployed in Tomcat - can Repository API be accessed from another context?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yes, how?&amp;nbsp; If no, does that mean I have to drop my app into exploded Alfresco.war and hook into it in web.xml?&amp;nbsp; Sounds like quite a hassle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for repository access,:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Introducing_the_Alfresco_Java_Content_Repository_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does not work - it seems awfully outdated.&amp;nbsp; It says to get Repository via:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ApplicationContext context = new ClassPathXmlApplicationContext("classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg/alfresco/jcr-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Repository repository = (Repository)context.getBean("JCR.Repository");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this does not work.&amp;nbsp; jcr-context.xml no longer gets packaged with alfresco.war.&amp;nbsp; The "org" part was removed from the classpath.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An updated version of getting Repository appeared here "&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API&lt;/A&gt;&lt;SPAN&gt;" end of January '06:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ApplicationContext appContext = new ClassPathXmlApplicationContext("alfresco/application-context.xml");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ServiceRegistry registry = (ServiceRegistry)appContext.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (registry.isServiceProvided(ServiceRegistry.NODE_SERVICE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeService nodeService = registry.getNodeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't tried this yet, about to do so.&amp;nbsp; Still, the main problem is deploying Alfresco as purely a service layer.&amp;nbsp; We do need the web client, but only for Administrative users.&amp;nbsp; Most other access would be done from our web app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2006 14:55:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25009#M12309</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-06T14:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25010#M12310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're going to look at getting another bundle built that is more the pure repo and not the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 10:17:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25010#M12310</guid>
      <dc:creator>paulhh</dc:creator>
      <dc:date>2006-02-07T10:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25011#M12311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just want to clear up some confusion here with regards to the different xxx-context.xml files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are two Alfresco public Java APIs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Alfresco's own service API&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Alfresco's implementation of the JCR API (JCR is a standard Content Repository API as specified in JSR-170)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "alfresco/application-context.xml" provides access to Alfresco's own service API which includes the ServiceRegistry and interfaces accessible from it.&amp;nbsp; This level of API is currently bundled into alfresco.war - simply because the Web Client uses it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "alfresco/jcr-context.xml" provides access to Alfresco's implementation of the JCR (JSR-170) API.&amp;nbsp; It's implemented as a facade on top of Alfresco's own API.&amp;nbsp; This is not bundled in alfresco.war.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When we provide the "developer" bundle as mentioned by Paul, all of the above jars (as well as the Web Service client jar etc) will be available pre-built.&amp;nbsp; Otherwise, they can be built from the source bundle.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 10:51:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25011#M12311</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-02-07T10:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25012#M12312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which API provides all services found in Alfresco UI (or almost, like categorization, forum, versioning, aspects). If I am building my web client with struts, I'll need to place what tree of API into it, what files of Alfresco API depends and are needed to be placed into my application too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2006 11:48:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25012#M12312</guid>
      <dc:creator>hsp</dc:creator>
      <dc:date>2006-02-13T11:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get access to the Repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25013#M12313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some figuring out I got Alfresco Web Client and myApp working with the same repository from different Tomcat contexts.&amp;nbsp; Here is info if&amp;nbsp; you need it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/forums/viewtopic.php?p=3826#3826" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/forums/viewtopic.php?p=3826#3826&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 15:59:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-get-access-to-the-repository/m-p/25013#M12313</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-02-15T15:59:29Z</dc:date>
    </item>
  </channel>
</rss>

