<?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: Multiple instances running against one repository? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79714#M53086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some more reading, I think I may have gone some way towards answering my own question - what I am trying to do seems very similar to the "clustered repository" mentioned in the repository architecture section of the wiki - that seems to show multiple instances sharing a common file store and database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are references to the need to set up the transaction architecture properly, but I have not yet found the details… Has anyone got experience of setting this up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2006 09:06:04 GMT</pubDate>
    <dc:creator>martinbradford</dc:creator>
    <dc:date>2006-10-13T09:06:04Z</dc:date>
    <item>
      <title>Multiple instances running against one repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79713#M53085</link>
      <description>Hi all,We are building a bespoke application which is storing documents in an Alfresco repository through a purpose built user interface. The presentation layer of the application is being coded in JSP and we have successfully written pages which insert and retrieve documents via calls to the Web Se</description>
      <pubDate>Fri, 13 Oct 2006 08:49:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79713#M53085</guid>
      <dc:creator>martinbradford</dc:creator>
      <dc:date>2006-10-13T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances running against one repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79714#M53086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After some more reading, I think I may have gone some way towards answering my own question - what I am trying to do seems very similar to the "clustered repository" mentioned in the repository architecture section of the wiki - that seems to show multiple instances sharing a common file store and database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are references to the need to set up the transaction architecture properly, but I have not yet found the details… Has anyone got experience of setting this up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 09:06:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79714#M53086</guid>
      <dc:creator>martinbradford</dc:creator>
      <dc:date>2006-10-13T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances running against one repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79715#M53087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing something similar to what you are talking about by pulling the Alfresco Repository from Alfresco Web Client ServletContext… Frankly I do not like the way it is currently set up… It feels ugly, but I needed a solution fast.&amp;nbsp;&amp;nbsp; I will be looking into changing it soon…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To make same instances of classes of by Alfresco Web Client available in a different servlet context you need to make sure a shared classloader loads them.&amp;nbsp; You have to move stuff to achieve this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \tomcat\webapps\alfresco\WEB-INF\classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\tomcat\shared\classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and from&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; \tomcat\webapps\alfresco\WEB-INF\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\tomcat\shared\lib&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you app has to specify crossContext="true" in the &amp;lt;context&amp;gt; element to be able to access Alfresco WC context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once all this is done you can pull Alfresco beans from the other context (this is inside of a servlet, so method getServletContext() is available:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ServletContext alfrescoWebContext = getServletContext().getContext("/alfresco");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WebApplicationContext alfrescoSpringContext = WebApplicationContextUtils.getRequiredWebApplicationContext(alfrescoWebContext);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Repository repository = (Repository)alfrescoSpringContext.getBean("JCR.Repository");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ServiceRegistry registry = (ServiceRegistry)alfrescoSpringContext.getBean(ServiceRegistry.SERVICE_REGISTRY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;etc…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know of a better way to do this?&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 19:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79715#M53087</guid>
      <dc:creator>alexeyg</dc:creator>
      <dc:date>2006-10-30T19:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple instances running against one repository?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79716#M53088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that is very useful - I've never really taken the time to learn the finer details of the servlet engine to that level of detail!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "better solution" would be to have the alfresco engine running in a more purpose built middle tier execution environemnt like an EJB server or Corba ORB and all applications including the web GUI share a single instance! When I saw that it was running in JBoss, that is what I was expecting… When I have the time, I may have a go at "Corba-izing" it - I don't see why it should be too difficult, but there are quite a lot of functions to expose and it would be fairly time-consuming…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 09:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-instances-running-against-one-repository/m-p/79716#M53088</guid>
      <dc:creator>martinbradford</dc:creator>
      <dc:date>2006-11-03T09:01:58Z</dc:date>
    </item>
  </channel>
</rss>

