<?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 Multiple share-custom files in SDK in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/multiple-share-custom-files-in-sdk/m-p/108752#M30526</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to add multiple share-config-custom files in sdk. Till now i am reffering this link&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.1/concepts/share-configuration-files.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.1/concepts/share-configuration-files.html&lt;/A&gt;&amp;nbsp;. I am assuming to register bean in &lt;SPAN&gt;slingshot-application-context.xml&lt;/SPAN&gt; file but i am confused exaclty how to add. And also want to add seprate multiple acs.properties files but confused in registraion of it .&lt;/P&gt;&lt;P&gt;Can Please someone help in this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhrumil&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 13:01:17 GMT</pubDate>
    <dc:creator>dhrumilgosaliya</dc:creator>
    <dc:date>2020-08-25T13:01:17Z</dc:date>
    <item>
      <title>Multiple share-custom files in SDK</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/multiple-share-custom-files-in-sdk/m-p/108752#M30526</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I want to add multiple share-config-custom files in sdk. Till now i am reffering this link&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.1/concepts/share-configuration-files.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.1/concepts/share-configuration-files.html&lt;/A&gt;&amp;nbsp;. I am assuming to register bean in &lt;SPAN&gt;slingshot-application-context.xml&lt;/SPAN&gt; file but i am confused exaclty how to add. And also want to add seprate multiple acs.properties files but confused in registraion of it .&lt;/P&gt;&lt;P&gt;Can Please someone help in this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhrumil&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 13:01:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/multiple-share-custom-files-in-sdk/m-p/108752#M30526</guid>
      <dc:creator>dhrumilgosaliya</dc:creator>
      <dc:date>2020-08-25T13:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple share-custom files in SDK</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/multiple-share-custom-files-in-sdk/m-p/108753#M30527</link>
      <description>&lt;P&gt;As per &lt;A href="https://docs.alfresco.com/5.1/concepts/share-configuration-files.html" target="_self" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt; doc, you can have two configs in web-extension/* and two in META-INF/* as the names suggests.&lt;/P&gt;
&lt;PRE class="pre codeblock prettyprint prettyprinted"&gt;&lt;SPAN class="pln"&gt;share-config-custom.xml&lt;BR /&gt;share-config-custom-dev.xml&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Now, if the whole purpuse is to keep share config per module then there is a better way to do it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use extension modules and define any number of share configurations in the extensions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a discussion around extension module share config vs share config custom here, may be helpful:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/surf-extension-module-vs-share-config-custom-xml/m-p/298589#M19160" target="_blank" rel="noopener nofollow noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/surf-extension-module-vs-share-config-custom-xml/m-p/298589#M19160&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you still want to use multiple share configs rather than extension based approach, then you can create any number of configs and bootstrap them using spring bean. example:&lt;/P&gt;

&lt;PRE&gt;&amp;lt;bean id="my.custom.configs" class="org.springframework.extensions.config.ConfigBootstrap" init-method="register"&amp;gt;
	   &amp;lt;property name="configService" ref="web.config" /&amp;gt;
	   &amp;lt;property name="configs"&amp;gt;
		   &amp;lt;list&amp;gt;
		   	&amp;lt;value&amp;gt;classpath:alfresco/web-extension/x-config.xml&amp;lt;/value&amp;gt;&lt;BR /&gt;                        &amp;lt;value&amp;gt;jar:*!/META-INF/xx-config.xml&amp;lt;/value&amp;gt;
		   	&amp;lt;value&amp;gt;classpath:alfresco/web-extension/y-config.xml&amp;lt;/value&amp;gt;&lt;BR /&gt;                        &amp;lt;value&amp;gt;jar:*!/META-INF/yy-config.xml&amp;lt;/value&amp;gt; &lt;BR /&gt;                        &amp;lt;value&amp;gt;classpath:alfresco/web-extension/z-config.xml&amp;lt;/value&amp;gt;&lt;BR /&gt;                        .....&lt;BR /&gt;                        &amp;lt;value&amp;gt;classpath:alfresco/web-extension/n-config.xml&amp;lt;/value&amp;gt;&lt;BR /&gt;                        &amp;lt;value&amp;gt;jar:*!/META-INF/nn-config.xml&amp;lt;/value&amp;gt; 
		   &amp;lt;/list&amp;gt;
	   &amp;lt;/property&amp;gt;
  &amp;lt;/bean&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Aug 2020 13:22:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/multiple-share-custom-files-in-sdk/m-p/108753#M30527</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-25T13:22:14Z</dc:date>
    </item>
  </channel>
</rss>

