Setting up multiple Repositories in Nuxeo with same Data base schema


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.

0 votes

2 answers



A detailed documentation about Multiple Repositories Configuration has been added.

1 votes

Fine, thank you

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 ${} variables.

0 votes


I ll have to setup the same kind of configuration : for performance and storage issues, I d like to use two distincts file systems. According to your answer, that implies having two different DBs and therefore another set of users.

Isn t there a way to have ("out of the box", meaning not having to write my own kind of repo) two different file systems on the same server (same users and groups, at least) ?