<?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: how to have two, three or N datasources in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326506#M13507</link>
    <description>&lt;P&gt;Since Nuxeo 5.5, all datasource have effectively been merged into one common datasource. For instance, &lt;CODE&gt;templates/common/config/default-sql-directories-bundle.xml&lt;/CODE&gt; is using datasource &lt;CODE&gt;jdbc/nxsqldirectory&lt;/CODE&gt; which is bound to the common &lt;CODE&gt;jdbc/nuxeo&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The common DS is defined in &lt;CODE&gt;templates/default/conf/server.xml&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Common datasource for all basic nuxeo datasources --&amp;gt;
&amp;lt;Resource name="${nuxeo.db.commonds}" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000" driverClassName="${nuxeo.db.driver}"
    url="${nuxeo.db.jdbc.url}" validationQuery="${nuxeo.db.validationQuery}"
    username="${nuxeo.db.user}" password="${nuxeo.db.password}" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With &lt;CODE&gt;nuxeo.db.commonds=jdbc/nuxeo&lt;/CODE&gt; (set in &lt;CODE&gt;templates/default/nuxeo.defaults&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;That common DS is referenced by other datasources in &lt;CODE&gt;templates/default/conf/Catalina/localhost/nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;You can still create custom datasources in a custom &lt;CODE&gt;nuxeo.xml&lt;/CODE&gt; and reference them in your XML extension points.&lt;/P&gt;
&lt;P&gt;If doing so, you should create a custom template for overriding &lt;CODE&gt;nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2012 16:25:55 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-04-12T16:25:55Z</dc:date>
    <item>
      <title>how to have two, three or N datasources</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326503#M13504</link>
      <description>&lt;P&gt;I need get data from another database, how Can I do&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 23:22:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326503#M13504</guid>
      <dc:creator>geekonspace</dc:creator>
      <dc:date>2012-04-11T23:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to have two, three or N datasources</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326504#M13505</link>
      <description>&lt;P&gt;Please read the &lt;A href="http://doc.nuxeo.com/x/PwA7"&gt;Setup documentation&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326504#M13505</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2012-04-12T10:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to have two, three or N datasources</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326505#M13506</link>
      <description>&lt;P&gt;Can you change your question to have something more explicit like that other user that will have the same question will look it. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 15:41:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326505#M13506</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-04-12T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to have two, three or N datasources</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326506#M13507</link>
      <description>&lt;P&gt;Since Nuxeo 5.5, all datasource have effectively been merged into one common datasource. For instance, &lt;CODE&gt;templates/common/config/default-sql-directories-bundle.xml&lt;/CODE&gt; is using datasource &lt;CODE&gt;jdbc/nxsqldirectory&lt;/CODE&gt; which is bound to the common &lt;CODE&gt;jdbc/nuxeo&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;The common DS is defined in &lt;CODE&gt;templates/default/conf/server.xml&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Common datasource for all basic nuxeo datasources --&amp;gt;
&amp;lt;Resource name="${nuxeo.db.commonds}" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000" driverClassName="${nuxeo.db.driver}"
    url="${nuxeo.db.jdbc.url}" validationQuery="${nuxeo.db.validationQuery}"
    username="${nuxeo.db.user}" password="${nuxeo.db.password}" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With &lt;CODE&gt;nuxeo.db.commonds=jdbc/nuxeo&lt;/CODE&gt; (set in &lt;CODE&gt;templates/default/nuxeo.defaults&lt;/CODE&gt;).&lt;/P&gt;
&lt;P&gt;That common DS is referenced by other datasources in &lt;CODE&gt;templates/default/conf/Catalina/localhost/nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;You can still create custom datasources in a custom &lt;CODE&gt;nuxeo.xml&lt;/CODE&gt; and reference them in your XML extension points.&lt;/P&gt;
&lt;P&gt;If doing so, you should create a custom template for overriding &lt;CODE&gt;nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 16:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-have-two-three-or-n-datasources/m-p/326506#M13507</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-04-12T16:25:55Z</dc:date>
    </item>
  </channel>
</rss>

