<?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: Scoped WebApplication Beans in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190667#M143797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;nobody from Alfresco can answer this question?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2009 11:06:00 GMT</pubDate>
    <dc:creator>daniel_gradecak</dc:creator>
    <dc:date>2009-03-03T11:06:00Z</dc:date>
    <item>
      <title>Scoped WebApplication Beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190666#M143796</link>
      <description>I would like to be able to have scoped beans for Alfresco WebApplication Context from a servlet (not faces).&amp;nbsp; In order to get it to work I had to do the following:In the web.xml, add the following:&amp;lt;web-app&amp;gt;&amp;nbsp; …&amp;nbsp; &amp;lt;listener&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;listener-class&amp;gt;org.springframework.web.context.request.R</description>
      <pubDate>Mon, 06 Oct 2008 15:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190666#M143796</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2008-10-06T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Scoped WebApplication Beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190667#M143797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;nobody from Alfresco can answer this question?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 11:06:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190667#M143797</guid>
      <dc:creator>daniel_gradecak</dc:creator>
      <dc:date>2009-03-03T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Scoped WebApplication Beans</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190668#M143798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to share how I do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before using the scoped proxy you need to have the proxy bound to the thread. The Spring's servlet listener or the filter does exactly this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(httpReq));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it works in alfresco where you can use a bean with aop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="jibe.repo.SearchResultsProvider" class="com.icodix.jibe.repo.dataprovider.SearchResultsGridProvider" parent="jibe.GridDataProvider"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scope="session"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;aop:scoped-proxy/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 22:31:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/scoped-webapplication-beans/m-p/190668#M143798</guid>
      <dc:creator>daniel_gradecak</dc:creator>
      <dc:date>2009-03-03T22:31:27Z</dc:date>
    </item>
  </channel>
</rss>

