<?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: java backed webscripts or spring dependency injection in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305778#M258908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes that is it &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Mar 2014 23:52:56 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-03-02T23:52:56Z</dc:date>
    <item>
      <title>java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305775#M258905</link>
      <description>Hi every oneIm using spring in my application and also needs to use alfresco services in my application , Im confused that how I Use spring Injection to get alfresco services?is spring injection as same as java backed web scripts or not?can I use alfresco services in my application directly or I sho</description>
      <pubDate>Thu, 27 Feb 2014 06:36:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305775#M258905</guid>
      <dc:creator>cookie</dc:creator>
      <dc:date>2014-02-27T06:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305776#M258906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use alfresco services your my application directly ,you should&amp;nbsp; embed Alfresco into your application,make your application and Alfresco reside in the same process.It is not recommended ,you should consider other remote apis(opencmis,webscript)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you really want to embed alfresco in to your application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are many options you can inject alfresco services to you bean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can just inject alfresco service bean you want to refer to &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example authenticationService&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;in your java class import org.alfresco.service.cmr.security.AuthenticationService&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="yourbeanid" class="com.**.YourClass" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="authenticationService" ref="authenticationService" /&amp;gt;&lt;BR /&gt;..&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you can inject ServiceRegistry to you bean ,from ServiceRegistry you can get all public service api.this option is recommended&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;in your java clss import org.alfresco.service.ServiceRegistry;&lt;BR /&gt;in spring configuration file config bean&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="yourbeanid" class="com.**.YourClass" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="serviceRegistry" ref="ServiceRegistry" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 12:13:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305776#M258906</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-02-27T12:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305777#M258907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks a lot for your answer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as I see you mean If I want to use alfresco services directly I can use ServiceRegistry or Spring dependency injection , then I should make an AMP file of my codes and embed it in my alfresco war file &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if I want to use services remotely I should use other remote APIs like&amp;nbsp; opencmis or webscripts&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 08:08:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305777#M258907</guid>
      <dc:creator>cookie</dc:creator>
      <dc:date>2014-03-01T08:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305778#M258908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes that is it &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 23:52:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305778#M258908</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-03-02T23:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305779#M258909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to instantiate Alfresco-Spring-Context embedded in my Spring project. I did as #kaynezhang suggested but I couldn't get it working. I'm having problems with jars dependencies in eclipse. How should I build dependencies with SDK Alfresco-Embedded ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 18:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305779#M258909</guid>
      <dc:creator>abreums</dc:creator>
      <dc:date>2014-06-26T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: java backed webscripts or spring dependency injection</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305780#M258910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You&amp;nbsp; can refer to &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_SDK_4.0" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Alfresco_SDK_4.0&lt;/A&gt;&lt;SPAN&gt; on how to set up alfresco eclipse project for embedded use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 09:06:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-backed-webscripts-or-spring-dependency-injection/m-p/305780#M258910</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-27T09:06:39Z</dc:date>
    </item>
  </channel>
</rss>

