<?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: Sping ApplicationContext in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sping-applicationcontext/m-p/54336#M32397</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;The one that works is the one to use.&amp;nbsp; When you create an ApplicationContext in Spring, it initializes all the beans again, thereby bringing up a second instance of the Alfresco repository within the same VM - bad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you can't just load a single xml file as a new ApplicationContext as it doesn't have access to all the other beans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to get the context from the application - it should have pulled your custom xml files in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 11:18:19 GMT</pubDate>
    <dc:creator>derek</dc:creator>
    <dc:date>2006-09-07T11:18:19Z</dc:date>
    <item>
      <title>Sping ApplicationContext</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sping-applicationcontext/m-p/54335#M32396</link>
      <description>Has anyone had problems obtaining a custom bean from a Web Service:This works:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplicationContext appCtx = null;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpServletRequest request = (HttpServletRequest)MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServletContext sc = request.get</description>
      <pubDate>Sun, 27 Aug 2006 09:04:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sping-applicationcontext/m-p/54335#M32396</guid>
      <dc:creator>dominict</dc:creator>
      <dc:date>2006-08-27T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sping ApplicationContext</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sping-applicationcontext/m-p/54336#M32397</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;The one that works is the one to use.&amp;nbsp; When you create an ApplicationContext in Spring, it initializes all the beans again, thereby bringing up a second instance of the Alfresco repository within the same VM - bad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you can't just load a single xml file as a new ApplicationContext as it doesn't have access to all the other beans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to get the context from the application - it should have pulled your custom xml files in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 11:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sping-applicationcontext/m-p/54336#M32397</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2006-09-07T11:18:19Z</dc:date>
    </item>
  </channel>
</rss>

