cancel
Showing results for 
Search instead for 
Did you mean: 

How to config multi-Repositories in one Alfresco instance ?

chasedream285
Champ in-the-making
Champ in-the-making
How to config multi-Repositories in one Alfresco instance ?

such as  in ' alfresco-global.properties' , I can  config multi-Repositories locations:

dir1.root=\\server1\driver1\alf_data

dir2.root=\\server1\driver2\alf_data

dir3.root=\\server2\driver1\alf_data

And I can manage all these Repositories in this Alfesco instance.

Benefit:
1) I can increase my storage capacity anytime.
2) improve search&index performance as there are many different Storage hard disk.

6 REPLIES 6

jpfi
Champ in-the-making
Champ in-the-making

chasedream285
Champ in-the-making
Champ in-the-making
they all submitted by me.

mrogers
Star Contributor
Star Contributor
Its not correct to talk of multiple repositories. A single repository contains many "Stores".  So an Alfresco repository (always one) contains a set of stores.    Its the different stores that can have their own roots.

On Alfresco Enterprise you can use the content store selector to change which store to use.  AFAIK its Enterprise Only.

On Alfresco Community you can configure mutiple content stores through spring.

if it's true, how to config it in Community edition?

Spring ? I couldn't find any threads on the Wiki and other official documents site.

And I found since Alfresco 3.x version, the feature was enabled, but still only Enterprise edition.

If any Community editions of Alfresco does not support this ,please tell me definitely.

mrogers
Star Contributor
Star Contributor
On Enterprise its the cm:storeSelector aspect.   Its an Enterprise only enhancement as is the code that that makes it easy to switch content between different content stores.

But out of the box both Enterprise and Community there are at least 4 content stores defined, more if you use AVM.   Look at the definition of the Spaces Store.

Hi Morgers,

Do you mean that Community edition also support 4 content stores too ? but I tried ,it failed ,and tomcat logs looks that:

2013-10-11 16:27:32,061  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Stopped 'sysAdmin' subsystem, ID: [sysAdmin, default]
2013-10-11 16:27:32,092  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageService' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'contentService' while setting bean property 'contentService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentService' defined in file [E:\Alfresco\Alfresco42a\tomcat\shared\classes\alfresco\extension\content-store-selector-context.xml]: Cannot resolve reference to bean 'storeSelectorContentStore' while setting bean property 'store'; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'storeSelectorContentStore' defined in file [E:\Alfresco\Alfresco42a\tomcat\shared\classes\alfresco\extension\content-store-selector-context.xml]: Could not resolve parent bean definition 'storeSelectorContentStoreBase'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'storeSelectorContentStoreBase' is defined
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)


Can you provide some detail support ? please don't only provide some text announcement Smiley Happy