<?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: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495929#M40732</link>
    <description>&lt;P&gt;Found it:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;@Configuration&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;@EnableFeignClients&lt;/SPAN&gt;&lt;SPAN&gt;(basePackages = {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.authentication.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.core.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.discovery.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.governance.core.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.governance.classification.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.model.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.sql.handler"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 22 Jan 2026 17:29:31 GMT</pubDate>
    <dc:creator>arnieHHS</dc:creator>
    <dc:date>2026-01-22T17:29:31Z</dc:date>
    <item>
      <title>How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495565#M40707</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This link &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://docs.alfresco.com/content-services/latest/develop/oop-sdk/" target="_blank" rel="noopener"&gt;https://docs.alfresco.com/content-services/latest/develop/oop-sdk/ &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shows a very terse Sdk5DemoApplication to start up a RESTful listener against a repo. I want to add ECM functionality to a multi-module EAR and want to isolate all that code to a new module (a spring jar). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have added said jar's root package to the application's @ComponentScan list of packages. But how do I tell Spring to find (aka scan) the Alfresco API beans? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The documentation is very vague as to what is being scanned/initialized. Specifically in regards to this: @Autowired SitesApi sitesApi; Which implies there's a SitesApiImpl somewhere to be instantiated. Will scanning be enough or will a&amp;nbsp;@PostConstruct method also be necessary?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jan 2026 20:10:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495565#M40707</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-12T20:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495568#M40708</link>
      <description>&lt;P&gt;Hope this helps:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/aborroy/alfresco-rest-client/blob/7d5a221c1e02b97498338e3d8c1ed9ad03c7a993/src/main/java/org/alfresco/rest/client/action/CreateSiteApp.java#L44" target="_blank"&gt;https://github.com/aborroy/alfresco-rest-client/blob/7d5a221c1e02b97498338e3d8c1ed9ad03c7a993/src/main/java/org/alfresco/rest/client/action/CreateSiteApp.java#L44&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 07:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495568#M40708</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-01-13T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495575#M40710</link>
      <description>&lt;P&gt;Sorry, it does not. That class demonstrates how to USE the Spring beans that are in the *Api interfaces after being injected by the Spring container.&lt;/P&gt;&lt;P&gt;My question is how to tell Spring to find and create the implementations of said APIs.&lt;/P&gt;&lt;P&gt;In my case with Spring MVC this is done via an annotated configuration class:&lt;/P&gt;&lt;P&gt;@Import({PersistenceConfig.class})&lt;BR /&gt;@EnableWebSecurity&lt;BR /&gt;@EnableAsync&lt;BR /&gt;@EnableScheduling&lt;BR /&gt;@EnableWs&lt;BR /&gt;@EnableWebMvc&lt;BR /&gt;@ComponentScan(basePackages = { "app.package.name",&lt;/P&gt;&lt;P&gt;And my application will be running "out-of-process" with Alfresco which will be on another server.&lt;/P&gt;&lt;P&gt;I have added:&lt;/P&gt;&lt;P&gt;"org.alfresco.core.*","lib.package.name"&lt;/P&gt;&lt;P&gt;And will test shortly. But that will only work if the Spring bean configuration information is present on the class path, in the form of XML or annotated classes.&lt;/P&gt;&lt;P&gt;I have looked in the alfresco-core-rest-api-7.2.0.jar and alfresco-java-rest-api-common-7.2.0.jar jars and found no such XML files. Not sure if there are any classes either because according to&amp;nbsp;alfresco-core-rest-api-7.2.0-javadoc, there's nothing in that JAR but interfaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 14:30:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495575#M40710</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-13T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495579#M40711</link>
      <description>&lt;P&gt;Spring cannot instantiate those Alfresco REST interfaces via &lt;CODE&gt;@ComponentScan&lt;/CODE&gt;. Scanning only finds concrete &lt;CODE&gt;@Component&lt;/CODE&gt; classes, and the Alfresco JARs you checked mostly contain interfaces, so there is nothing to create.&lt;/P&gt;
&lt;P&gt;Those interfaces become beans only if you use a proxy mechanism, typically OpenFeign, or the Alfresco Spring Boot starter that auto-registers Feign clients.&lt;/P&gt;
&lt;P&gt;If using Spring Boot,&amp;nbsp;add &lt;CODE&gt;org.alfresco:alfresco-java-rest-api-spring-boot-starter&lt;/CODE&gt; and ensure auto-config is enabled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 14:50:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495579#M40711</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-01-13T14:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495580#M40712</link>
      <description>&lt;P&gt;The app is not spring-boot; its an MVC app that runs in an application server along side EJBs as well.&lt;/P&gt;&lt;P&gt;So is there a code example of this "OpenFeign" or should I change tack and use OpenCMIS API instead?&lt;/P&gt;&lt;P&gt;I looked in several of&amp;nbsp;&lt;SPAN&gt;alfresco-java-rest-api-spring-boot-starter jars and find no code. So what Dark Majik is spring doing to bootstrap anything?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:00:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495580#M40712</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-13T15:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495581#M40713</link>
      <description>&lt;P&gt;For a non-Spring-Boot MVC app running in an app server, the simplest and least surprising option is a concrete REST client (OpenAPI-generated or hand-written) or even OpenCMIS, as you said.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:34:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495581#M40713</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-01-13T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495582#M40714</link>
      <description>&lt;P&gt;So, where might the OpenAPI file be? In the Hyland download's site or ... ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:36:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495582#M40714</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-13T15:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495586#M40715</link>
      <description>&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/" target="_blank"&gt;https://api-explorer.alfresco.com/api-explorer/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:46:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495586#M40715</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-01-13T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495925#M40731</link>
      <description>&lt;P&gt;I created a java stub project for each api (auth, core, discovery, model, search, search-sql, workflow) and have wired them into my application. Each jar's related package name has been added to the&amp;nbsp;&lt;SPAN&gt;@ComponentScan(basePackages=...) annotation. But at deployment time I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NoSuchBeanDefinitionException: No qualifying bean of type 'org.alfresco.auth.handler.api.AuthenticationApi' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which I'm not surprised as the various injection points are all interfaces.&lt;/P&gt;&lt;P&gt;Again, Spring MVC here, not Spring Boot. Just what is Spring doing via&amp;nbsp;@SpringBootApplication that somehow gives it access to a concrete implementation of the NodesAPI (for example)?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 16:18:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495925#M40731</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-22T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495929#M40732</link>
      <description>&lt;P&gt;Found it:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;@Configuration&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;@EnableFeignClients&lt;/SPAN&gt;&lt;SPAN&gt;(basePackages = {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.authentication.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.core.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.discovery.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.governance.core.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.governance.classification.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.model.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.sql.handler"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jan 2026 17:29:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495929#M40732</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-22T17:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495935#M40733</link>
      <description>&lt;P&gt;So, the published alfresco-core-rest-api.jar and all the others all include io.swagger.configuration which is not allowable when using JDK 9+ (I'm on 17). Which I found at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mvnrepository.com/artifact/org.alfresco/alfresco-core-rest-api" target="_blank"&gt;https://mvnrepository.com/artifact/org.alfresco/alfresco-core-rest-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are there versions of these libraries with OUT the swagger package?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 21:03:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495935#M40733</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-22T21:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize alfresco-core-rest-api from Spring MVC app via @ComponentScan</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495961#M40734</link>
      <description>&lt;P&gt;Also, this library needs the following properties set up:&lt;/P&gt;&lt;P&gt;-Dcontent.service.url=&lt;A href="https://localhost:8443" target="_blank" rel="noopener"&gt;https://localhost:8443&lt;/A&gt;&lt;BR /&gt;-Dcontent.service.path=content&lt;BR /&gt;-Dauthentication.service.path=auth&lt;/P&gt;&lt;P&gt;Putting these in a properties file in the root of the JAR, and adding the follow annotation to the top of a configuration class:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;@Configuration&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;@PropertySource&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"classpath:alfresco.properties"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;@Import&lt;/SPAN&gt;&lt;SPAN&gt;(FeignAutoConfiguration.&lt;/SPAN&gt;&lt;SPAN&gt;class&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;@EnableFeignClients&lt;/SPAN&gt;&lt;SPAN&gt;(basePackages = {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.authentication.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.core.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.discovery.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.model.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.handler"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"org.alfresco.search.sql.handler"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does NOT work. No idea why. Had to add them to the server start up, which is not ideal or valid.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Jan 2026 14:41:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-initialize-alfresco-core-rest-api-from-spring-mvc-app-via/m-p/495961#M40734</guid>
      <dc:creator>arnieHHS</dc:creator>
      <dc:date>2026-01-26T14:41:17Z</dc:date>
    </item>
  </channel>
</rss>

