<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Switching between repositories in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327327#M14328</link>
    <description>&lt;P&gt;You can choose the repository with the following URL: &lt;A href="http://yourserver/nuxeo/nxpath/default@view_servers" target="test_blank"&gt;http://yourserver/nuxeo/nxpath/default@view_servers&lt;/A&gt; 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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2012 17:41:23 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-02-09T17:41:23Z</dc:date>
    <item>
      <title>Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327326#M14327</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;I've got no errors in logs. This is what I did yet:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;I've created secondary-repository-config.xml with content like this:&lt;/P&gt;

&lt;COMPONENT name="secondary-repository-config"&gt;
&lt;EXTENSION target="org.nuxeo.ecm.core.repository.RepositoryService" point="repository"&gt;
&lt;REPOSITORY name="secondary" factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory"&gt;
  &lt;REPOSITORY name="secondary"&gt;
    &lt;CLUSTERING enabled="${repository.clustering.enabled}" delay="${repository.clustering.delay}"&gt;&lt;/CLUSTERING&gt;
    &lt;BINARYSTORE path="C:\\Programy\\Nuxeo DM\\nuxeo-cap-5.5-tomcat\\nxserver\\data2\\binaries"&gt;&lt;/BINARYSTORE&gt;
    &lt;SCHEMA&gt;
      &lt;FIELD type="largetext"&gt;note&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;relatedtext&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;webp:content&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;webc:welcomeText&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;comment:comment&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;post&lt;/FIELD&gt;
      &lt;FIELD type="largetext"&gt;mail:mail&lt;/FIELD&gt;
    &lt;/SCHEMA&gt;
    &lt;INDEXING&gt;
	  &lt;!-- for H2 (Lucene Analyzer): --&gt;
      &lt;FULLTEXT analyzer="org.apache.lucene.analysis.standard.StandardAnalyzer"&gt;
        &lt;INDEX name="secondary"&gt;
          &lt;!-- all props implied --&gt;
        &lt;/INDEX&gt;
        &lt;INDEX name="title"&gt;
          &lt;FIELD&gt;dc:title&lt;/FIELD&gt;
        &lt;/INDEX&gt;
        &lt;INDEX name="description"&gt;
          &lt;FIELD&gt;dc:description&lt;/FIELD&gt;
        &lt;/INDEX&gt;
      &lt;/FULLTEXT&gt;
    &lt;/INDEXING&gt;
    &lt;XA-DATASOURCE&gt;org.postgresql.xa.PGXADataSource&lt;/XA-DATASOURCE&gt;
    &lt;PROPERTY name="ServerName"&gt;localhost&lt;/PROPERTY&gt;
    &lt;PROPERTY name="PortNumber"&gt;5432&lt;/PROPERTY&gt;
    &lt;PROPERTY name="DatabaseName"&gt;secondary&lt;/PROPERTY&gt;
    &lt;PROPERTY name="User"&gt;nuxeo&lt;/PROPERTY&gt;
    &lt;PROPERTY name="Password"&gt;nuxeo&lt;/PROPERTY&gt;
  &lt;/REPOSITORY&gt;
&lt;/REPOSITORY&gt;
&lt;/EXTENSION&gt;
&lt;/COMPONENT&gt;  
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I've put this xml in NUXEO_HOME/templates/custom/nxserver/config&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;In nuxeo.conf I've set nuxeo.templates=default,custom&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I've created proper datababase with PostgreSQL&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I am working with Tomcat distribution (v 5.5). Both of my repos are PostgreSQL, each of them has its own database.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 09 Feb 2012 16:16:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327326#M14327</guid>
      <dc:creator>Michal_</dc:creator>
      <dc:date>2012-02-09T16:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327327#M14328</link>
      <description>&lt;P&gt;You can choose the repository with the following URL: &lt;A href="http://yourserver/nuxeo/nxpath/default@view_servers" target="test_blank"&gt;http://yourserver/nuxeo/nxpath/default@view_servers&lt;/A&gt; 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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 17:41:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327327#M14328</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-02-09T17:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327328#M14329</link>
      <description>&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 09:45:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327328#M14329</guid>
      <dc:creator>Michal_</dc:creator>
      <dc:date>2012-02-14T09:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327329#M14330</link>
      <description>&lt;P&gt;Check what is &lt;EM&gt;actually&lt;/EM&gt; deployed after startup in &lt;CODE&gt;NUXEO_HOME/nxserver&lt;/CODE&gt; to know if the templates are taken into account correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 17:14:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327329#M14330</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-02-14T17:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327330#M14331</link>
      <description>&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 09:35:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327330#M14331</guid>
      <dc:creator>Michal_</dc:creator>
      <dc:date>2012-02-15T09:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327331#M14332</link>
      <description>&lt;P&gt;I moved your next question into an [another question][1].&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:11:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327331#M14332</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-02-16T11:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327332#M14333</link>
      <description>&lt;P&gt;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:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="com.nuxeo.multi.repository"&amp;gt;
    &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.api.DefaultPlatform&amp;lt;/require&amp;gt;
    &amp;lt;extension target="org.nuxeo.ecm.core.api.repository.RepositoryManager"
        point="repositories"&amp;gt;
        &amp;lt;repository name="secondary" label="Secondary Repo" /&amp;gt;
    &amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Everything seems to work fine, after login I'm able to choose repo.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:13:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327332#M14333</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-02-16T11:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between repositories</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327333#M14334</link>
      <description>&lt;P&gt;Yes for historical reasons there are two repository registries that must be filled to declare a repository. We'll simplify this in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:23:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/switching-between-repositories/m-p/327333#M14334</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-02-16T16:23:16Z</dc:date>
    </item>
  </channel>
</rss>

