]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CC-347: Remove data source binding errors in logs on cspace startup.
authorRichard Millet <remillet@gmail.com>
Tue, 21 May 2019 23:57:53 +0000 (16:57 -0700)
committerRichard Millet <remillet@gmail.com>
Wed, 22 May 2019 00:20:33 +0000 (17:20 -0700)
3rdparty/nuxeo/build.xml
3rdparty/nuxeo/nuxeo-server/7.10-HF17/config/proto-datasource-config.xml
build.properties

index b65277bb4d9b930d0c10582be823ce99c2cd197d..9addada0e52f5b709e7b3bc06bdda0de2678007c 100644 (file)
         <copy todir="${jee.server.cspace}/cspace/config/services" overwrite="true">
             <fileset file="${basedir}/nuxeo-server/${nuxeo.release}/config/proto-datasource-config.xml"/>
             <filterset>
+                <filter token="JDBC_DEFAULT_DATASOURCE" value="${db.jdbc.default.datasource}"/>
                 <filter token="DB_SERVER_HOSTNAME" value="${db.host}"/>
                 <filter token="DB_PORT" value="${db.port}"/>
                 <filter token="DB_JDBC_OPTIONS" value="${db.jdbc.urloptions.encoded}"/>
index 4887c1673f8e6c90968d74eda054ce87b28e498c..780bc28d6023f891db829628520dd0d5c3364a5b 100644 (file)
        <!--
                These links need to be moved into the context.xml file and become <Resource> instead of <link>
        -->
-    <link name="jdbc/repository_default" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/repository_default" global="jdbc/default" type="javax.sql.DataSource"/>
-    <link name="jdbc/NuxeoDS" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxsqldirectory" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxrelations-default-jena" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/comment-relations" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxaudit-logs" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxjbpm" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/placeful_service_ds" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxwebwidgets" global="jdbc/default" type="javax.sql.DataSource" />
-    <link name="jdbc/nxuidsequencer" global="jdbc/default" type="javax.sql.DataSource" />
+    <link name="jdbc/repository_default" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/repository_default" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource"/>
+    <link name="jdbc/NuxeoDS" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxsqldirectory" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxrelations-default-jena" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/comment-relations" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxaudit-logs" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxjbpm" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/placeful_service_ds" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxwebwidgets" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
+    <link name="jdbc/nxuidsequencer" global="@JDBC_DEFAULT_DATASOURCE@" type="javax.sql.DataSource" />
        
        <!-- These properties are passed into the CSpace code that generates the final version
        of this Nuxeo configuration file.
index 214f9a1f95539672e72c7d6aaf5939884eb15de1..99f8f1d90c7d59147a1e25b461bfa92d077e258d 100644 (file)
@@ -160,6 +160,15 @@ db.port=${env.DB_PORT}
 db.host=${env.DB_HOST}
 db.jdbc.baseurl=jdbc:${db}://${db.host}:${db.port}
 
+#
+# Used for misc Nuxeo services, plugins, and extensions
+#
+# Single tenant deployments of CollectionSpace, should set this to the datasource name
+# in the tenant's datasource config file found in the tomcat7/nuxeo-server/config directory.  For example,
+# "jdbc/cinefiles_domain" for the UCB cinefiles deployment.
+#
+db.jdbc.default.datasource=jdbc/cinefiles_domain
+
 #
 # JDBC options that can be added to the database URL.  We need to supply an "encoded" version
 # of the options for cases where the URL is processed inside of XML scripts/files