02-09-2012 11:16 AM
I've already set up multiple repositories with single Nuxeo instance and my question is how to switch between them? In my nuxeo.conf file I have: nuxeo.templates=default,custom but after login I am always redirected to the default one. I would like to have 2 repos working at the same time and also an option that enables me to choose one of them.
I've got no errors in logs. This is what I did yet:
I've created secondary-repository-config.xml with content like this:
I've put this xml in NUXEO_HOME/templates/custom/nxserver/config
In nuxeo.conf I've set nuxeo.templates=default,custom
I've created proper datababase with PostgreSQL
I am working with Tomcat distribution (v 5.5). Both of my repos are PostgreSQL, each of them has its own database.
02-09-2012 12:41 PM
You can choose the repository with the following URL: http://yourserver/nuxeo/nxpath/default@view_servers which is accessible from the breadcrumbs navigation, clicking on the left arrow. But if you're logging in as an administrator user, you should be redirected to this view after login.
If the only item you see on this page is the default repository, then you may have a configuration issue: please comment your post to give more information about what you did, and check if you have any errors in logs.
02-09-2012 12:41 PM
You can choose the repository with the following URL: http://yourserver/nuxeo/nxpath/default@view_servers which is accessible from the breadcrumbs navigation, clicking on the left arrow. But if you're logging in as an administrator user, you should be redirected to this view after login.
If the only item you see on this page is the default repository, then you may have a configuration issue: please comment your post to give more information about what you did, and check if you have any errors in logs.
02-14-2012 04:45 AM
One small change - I've put secondary-repository-config.xml in NUXEO_HOME/templates/custom/config instead of NUXEO_HOME/templates/custom/nxserver/config. New repo appeaed in NUXEO_HOME/nxserver/repos but http
02-14-2012 12:14 PM
Check what is actually deployed after startup in NUXEO_HOME/nxserver
to know if the templates are taken into account correctly.
02-15-2012 04:35 AM
After deployment secondary-repository-config.xml appeared in NUXEO_HOME/nxserver/config and new repo is created in NUXEO_HOME/nxserver/repos/secondary. But after login I'm not redirected do http
02-16-2012 06:11 AM
I moved your next question into an [another question][1].
02-16-2012 06:13 AM
I found out that there is one more thing to do while setting up multiple repositories. I just had to contribute "repositories" extension point, just like this:
<component name="com.nuxeo.multi.repository">
<require>org.nuxeo.ecm.platform.api.DefaultPlatform</require>
<extension target="org.nuxeo.ecm.core.api.repository.RepositoryManager"
point="repositories">
<repository name="secondary" label="Secondary Repo" />
</extension>
</component>
Everything seems to work fine, after login I'm able to choose repo.
02-16-2012 11:23 AM
Yes for historical reasons there are two repository registries that must be filled to declare a repository. We'll simplify this in the future.
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.