diff flys-artifacts/doc/conf/conf.xml @ 3093:b0f59d42ae4f

De-centralized database configuration. flys-artifacts/trunk@4692 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Jun 2012 14:30:43 +0000
parents 5c87d4ca1bd3
children c041944a7f74
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/conf.xml	Mon Jun 18 13:58:13 2012 +0000
+++ b/flys-artifacts/doc/conf/conf.xml	Mon Jun 18 14:30:43 2012 +0000
@@ -1,3 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE artifact-database [
+    <!ENTITY artifact-db SYSTEM "artifact-db.xml">
+    <!ENTITY datacage-db SYSTEM "datacage-db.xml">
+    <!ENTITY backend-db  SYSTEM "backend-db.xml">
+    <!ENTITY seddb-db    SYSTEM "seddb-db.xml">
+]>
 <artifact-database>
     <export-secret>YOUR_SECRET</export-secret>
     <factories>
@@ -321,45 +328,11 @@
         <config-file>${artifacts.config.dir}/cache.xml</config-file>
     </cache>
 
-    <!-- This is the default configuration of the datacage db:
-    <datacage>
-        <user/>
-        <password/>
-        <driver>org.h2.Driver</driver>
-        <url>jdbc:h2:mem:datacage;INIT=RUNSCRIPT FROM '${artifacts.config.dir}/datacage.sql'</url>
-    </datacage>
-    -->
-
-    <database>
-        <!-- This Section configures the Settings for connecting to the 
-             Artifact-Database instance. e.g. SQLite -->
-        <user>SA</user>
-        <password></password>
-        <!-- For use with a postgresql database use the appropriate driver-->
-        <!--driver>org.postgresql.Driver</driver-->
-        <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url>
-    </database>
-    <!-- This is the default backend db configuration. -->
-    <!--
-    <backend-database>
-        <user>flys</user>
-        <password>flys</password>
-        <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
-        <driver>org.postgresql.Driver</driver>
-        <url>jdbc:postgresql://localhost:5432/flys</url>
-    </backend-database>
-    -->
-
-    <!-- This is the default SedDB db configuration. -->
-    <!--
-    <seddb-database>
-        <user>sedb</user>
-        <password>sedb</password>
-        <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
-        <driver>org.postgresql.Driver</driver>
-        <url>jdbc:postgresql://localhost:5432/seddb</url>
-    </seddb-database>
-    -->
+    <!-- Configuration of used databases. -->
+    &artifact-db;
+    &datacage-db;
+    &backend-db;
+    &seddb-db;
 
     <flys>
         <themes>

http://dive4elements.wald.intevation.org