Mercurial > dive4elements > framework
view artifact-database/doc/example-conf/conf.xml @ 30:88972c6daa4f
Added a cleanup thread which periodically removes
outdated artifacts from database and calls there
endOfLife() method.
artifacts/trunk@70 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 10 Sep 2009 23:16:18 +0000 |
parents | 1259d192e3c3 |
children | 86d2a843e588 |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <artifact-database> <factories> <context-factory>de.intevation.artifactdatabase.DefaultArtifactContextFactory</context-factory> <artifact-factories> <artifact-factory name="dummy-1" description="dummy description 1" ttl="60000" artifact="de.intevation.artifactdatabase.DefaultArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> <artifact-factory name="dummy-2" description="dummy description 2" ttl="1800000" artifact="de.intevation.artifactdatabase.DefaultArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> <artifact-factory name="dummy-3" description="dummy description 3" artifact="de.intevation.artifactdatabase.DefaultArtifact">de.intevation.artifactdatabase.DefaultArtifactFactory</artifact-factory> </artifact-factories> </factories> <!-- configuration of the rest server --> <rest-server> <port>8181</port> </rest-server> <!-- garbage collection of outdated artifacts --> <cleaner> <sleep-time>60000</sleep-time> </cleaner> <database> <user></user> <password></password> <!-- <url>jdbc:h2:artifacts.db</url> --> <!-- <driver>org.h2.Driver</driver> --> <!-- <sql></sql> --> </database> </artifact-database>