cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up multiple Repositories in Nuxeo with same Data base schema

catherine_
Champ on-the-rise
Champ on-the-rise

Hi,

I am using Nuxeo DM 5.6 and I am trying to set up multiple repositories in Nuxeo. I create a copy of "default-repository-config.xml.nxftl" and create "custom-repository-config.xml.nxftl" , and add a extension point to refer to the new repository also.

Both the files are same except that i change the repository name to "custom". Please see that I am using the same Data base schema for both the repositories. When i start the server , i see the second repository as well.But the Domain/Workspace etc are same for both repositories. Any change in one repository is reflected in the other i.e if i create a workspace "temp" in the custom repo , then i see the same "temp" workspace in default repo aswell.

Moreover, the "REPOSITORIES" table still shows the default entry ONLY . But if i run the following lines, It correctly shows me both the repositories:

 RepositoryManager rm = Framework.getService(RepositoryManager.class);
 Collection<Repository> repo =  rm.getRepositories();

Can someone please guide that this is the expected behavior with the same Data Base schema or i have missed something in the configuration.

4 REPLIES 4

Florent_Guillau
World-Class Innovator
World-Class Innovator

If you see the same data in both repositories then it means that the configuration files point to the same database. In each .xml.ftl file you should change the configuration parameters for your database. The <xa-datasource> and <properties> tags must be different for your two repositories. They must not both use the same ${nuxeo.db.name} variables.

Hi

Florent_Guillau
World-Class Innovator
World-Class Innovator

A detailed documentation about Multiple Repositories Configuration has been added.

Fine, thank you

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.