05-16-2013 10:21 AM
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.
05-21-2013 02:25 PM
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.
04-15-2015 03:36 AM
Hi
05-04-2015 01:40 PM
A detailed documentation about Multiple Repositories Configuration has been added.
05-04-2015 01:44 PM
Fine, thank you
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.