<?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 foundation api: in-process or in-webapp? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160163#M114149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am trying to access the repository from a webapp which sits next to the alfresco webapp. i first tried to use JCR, but left that track. now I am trying to use the Foundation API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from the wiki i read "It is an in-process API meaning that the client must sit within the same process as the Repository. For example, the Alfresco Web Client uses this API and is packaged together with the Repository in a single .war file for deployment to an application server.". my webapp runs in the same tomcat, so it is in-process, but then i wonder why the example of the .war is given or is it meant that the API can only be used in-webapp/context (which would explain why i have currently trouble getting it to work)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dirk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 11:14:59 GMT</pubDate>
    <dc:creator>dirko</dc:creator>
    <dc:date>2008-03-12T11:14:59Z</dc:date>
    <item>
      <title>foundation api: in-process or in-webapp?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160163#M114149</link>
      <description>Hello,i am trying to access the repository from a webapp which sits next to the alfresco webapp. i first tried to use JCR, but left that track. now I am trying to use the Foundation API.from the wiki i read "It is an in-process API meaning that the client must sit within the same process as the Repo</description>
      <pubDate>Wed, 12 Mar 2008 11:14:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160163#M114149</guid>
      <dc:creator>dirko</dc:creator>
      <dc:date>2008-03-12T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: foundation api: in-process or in-webapp?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160164#M114150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although your webapp and the Alfresco repository are in the same process from an OS perspective, Java servlet containers (in this case Tomcat) use classloader isolation techniques to "firewall" web applications from one another (more details on this for Tomcat are at &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html&lt;/A&gt;&lt;SPAN&gt; - note that most servlet containers have their own unique classloader schemes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The upshot is that in practice the Foundation Services API is only available from within the Alfresco webapp - for all other uses you'll have to use one of Alfresco's remote APIs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Web Scripts (recommended) - &lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;SOAP Web Services - &lt;A href="http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;JCR-RMI - &lt;A href="http://wiki.alfresco.com/wiki/JCR-RMI_Extension" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JCR-RMI_Extension&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 16:09:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160164#M114150</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-03-15T16:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: foundation api: in-process or in-webapp?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160165#M114151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[…]for all other uses you'll have to use one of Alfresco's remote APIs&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You may want to consider Tomcat's crossContext configuration option. I've used this to access, from a second webapp running next to the Web Client, the Alfresco repository (see for instance &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_and_Tapestry_on_the_Same_Tomcat_Installation" rel="nofollow noopener noreferrer"&gt;this wiki page&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kaspar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2008 22:05:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/foundation-api-in-process-or-in-webapp/m-p/160165#M114151</guid>
      <dc:creator>hbf</dc:creator>
      <dc:date>2008-03-15T22:05:09Z</dc:date>
    </item>
  </channel>
</rss>

