comparison 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
comparison
equal deleted inserted replaced
3092:cc8e28f9ccdf 3093:b0f59d42ae4f
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE artifact-database [
3 <!ENTITY artifact-db SYSTEM "artifact-db.xml">
4 <!ENTITY datacage-db SYSTEM "datacage-db.xml">
5 <!ENTITY backend-db SYSTEM "backend-db.xml">
6 <!ENTITY seddb-db SYSTEM "seddb-db.xml">
7 ]>
1 <artifact-database> 8 <artifact-database>
2 <export-secret>YOUR_SECRET</export-secret> 9 <export-secret>YOUR_SECRET</export-secret>
3 <factories> 10 <factories>
4 <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory> 11 <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory>
5 12
319 326
320 <cache> 327 <cache>
321 <config-file>${artifacts.config.dir}/cache.xml</config-file> 328 <config-file>${artifacts.config.dir}/cache.xml</config-file>
322 </cache> 329 </cache>
323 330
324 <!-- This is the default configuration of the datacage db: 331 <!-- Configuration of used databases. -->
325 <datacage> 332 &artifact-db;
326 <user/> 333 &datacage-db;
327 <password/> 334 &backend-db;
328 <driver>org.h2.Driver</driver> 335 &seddb-db;
329 <url>jdbc:h2:mem:datacage;INIT=RUNSCRIPT FROM '${artifacts.config.dir}/datacage.sql'</url>
330 </datacage>
331 -->
332
333 <database>
334 <!-- This Section configures the Settings for connecting to the
335 Artifact-Database instance. e.g. SQLite -->
336 <user>SA</user>
337 <password></password>
338 <!-- For use with a postgresql database use the appropriate driver-->
339 <!--driver>org.postgresql.Driver</driver-->
340 <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url>
341 </database>
342 <!-- This is the default backend db configuration. -->
343 <!--
344 <backend-database>
345 <user>flys</user>
346 <password>flys</password>
347 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
348 <driver>org.postgresql.Driver</driver>
349 <url>jdbc:postgresql://localhost:5432/flys</url>
350 </backend-database>
351 -->
352
353 <!-- This is the default SedDB db configuration. -->
354 <!--
355 <seddb-database>
356 <user>sedb</user>
357 <password>sedb</password>
358 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
359 <driver>org.postgresql.Driver</driver>
360 <url>jdbc:postgresql://localhost:5432/seddb</url>
361 </seddb-database>
362 -->
363 336
364 <flys> 337 <flys>
365 <themes> 338 <themes>
366 <configuration>${artifacts.config.dir}/themes.xml</configuration> 339 <configuration>${artifacts.config.dir}/themes.xml</configuration>
367 </themes> 340 </themes>

http://dive4elements.wald.intevation.org