Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/conf.xml @ 160:27d3d0093993
merged flys-artifacts/0.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:07 +0200 |
parents | 76cc1a66a05f |
children | 1a00cb4998a8 |
comparison
equal
deleted
inserted
replaced
103:deaa50a8be82 | 160:27d3d0093993 |
---|---|
1 <artifact-database> | |
2 <export-secret>YOUR_SECRET</export-secret> | |
3 <factories> | |
4 <context-factory>de.intevation.flys.artifacts.context.FLYSContextFactory</context-factory> | |
5 | |
6 <collection-factory | |
7 name="DefaultArtifactCollectionFactory" | |
8 description="The default artifact collection factory" | |
9 ttl="60000" | |
10 artifact-collection="de.intevation.flys.collections.FLYSArtifactCollection">de.intevation.artifactdatabase.DefaultArtifactCollectionFactory</collection-factory> | |
11 | |
12 <artifact-factories> | |
13 <!-- All Artifactfactories which are available in this Database. | |
14 Each Artifactfactory represents one river. --> | |
15 <artifact-factory name="winfo" description="Factory to create an artifact to be used in WINFO" | |
16 ttl="3600000" | |
17 artifact="de.intevation.flys.artifacts.WINFOArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> | |
18 </artifact-factories> | |
19 | |
20 <user-factory name="default" description="Factory to create new users">de.intevation.artifactdatabase.DefaultUserFactory</user-factory> | |
21 | |
22 <service-factories> | |
23 <service-factory | |
24 name="rivers" | |
25 service="de.intevation.flys.artifacts.services.RiverService" | |
26 description="This service returns a list of provided rivers by the artifact server.">de.intevation.artifactdatabase.DefaultServiceFactory</service-factory> | |
27 </service-factories> | |
28 | |
29 </factories> | |
30 | |
31 <artifacts> | |
32 <artifact name="winfo" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="${artifacts.config.dir}/artifacts/winfo.xml" /> | |
33 </artifacts> | |
34 | |
35 <rest-server> | |
36 <!-- at this Point it is possible to Change the Port the ArtifactDatabase will bind to.--> | |
37 <port>8181</port> | |
38 <listen>localhost</listen> | |
39 </rest-server> | |
40 <!-- garbage collection of outdated artifacts --> | |
41 <cleaner> | |
42 <sleep-time>60000</sleep-time> | |
43 </cleaner> | |
44 <database> | |
45 <!-- This Section configures the Settings for connecting to the | |
46 Artifact-Database instance. e.g. SQLite --> | |
47 <user>SA</user> | |
48 <password></password> | |
49 <url>jdbc:h2:${artifacts.config.dir}/../artifactdb/artifacts.db</url> | |
50 </database> | |
51 <!-- This is the default backend db configuration --> | |
52 <!-- | |
53 <backend-database> | |
54 <user>flys</user> | |
55 <password>flys</password> | |
56 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> | |
57 <driver>org.postgresql.Driver</driver> | |
58 <url>jdbc:postgresql://localhost:5432/flys</url> | |
59 </backend-database> | |
60 --> | |
61 </artifact-database> |