<?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: spring dependency injection issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33316#M17376</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;If you are running a test you need to build the ApplicationContext once and only once, This can be done using BaseSpring test or your own test that builds a static context. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your example, you get an application context everytime you login in and not untill you call login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are wiring into the alfresco repository in the configuration files then you never need to make an ApplicationContext - that is done as you start tomcat or JBoss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2006 08:29:48 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2006-01-16T08:29:48Z</dc:date>
    <item>
      <title>spring dependency injection issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33315#M17375</link>
      <description>hi,we are exploring alfreco for a while, its a great product, we are considering to provide content services which would have been very difficult with out alfresco. i have some issues in trying to use spring dependency injection, it would be great if somebody can figure out the solution.&amp;lt;bean id=</description>
      <pubDate>Mon, 16 Jan 2006 07:16:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33315#M17375</guid>
      <dc:creator>pmarreddy</dc:creator>
      <dc:date>2006-01-16T07:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: spring dependency injection issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33316#M17376</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;If you are running a test you need to build the ApplicationContext once and only once, This can be done using BaseSpring test or your own test that builds a static context. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your example, you get an application context everytime you login in and not untill you call login.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are wiring into the alfresco repository in the configuration files then you never need to make an ApplicationContext - that is done as you start tomcat or JBoss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 08:29:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33316#M17376</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-01-16T08:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: spring dependency injection issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33317#M17377</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;actually myproblem is it is giving me nullpointer excpetion if i am using spring dependency injection as specified above. if i am using get bean it is working fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "main" java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.example.test1.login(test1.java:23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.alfresco.example.loggie.main(loggie.java:14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;adv thanks prasanth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2006 14:25:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/spring-dependency-injection-issue/m-p/33317#M17377</guid>
      <dc:creator>pmarreddy</dc:creator>
      <dc:date>2006-01-16T14:25:16Z</dc:date>
    </item>
  </channel>
</rss>

