Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/App.java @ 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 | c2d53bd30ab8 |
comparison
equal
deleted
inserted
replaced
29:22b03d5c84c5 | 30:88972c6daa4f |
---|---|
38 | 38 |
39 FactoryBootstrap bootstrap = new FactoryBootstrap(); | 39 FactoryBootstrap bootstrap = new FactoryBootstrap(); |
40 | 40 |
41 bootstrap.boot(); | 41 bootstrap.boot(); |
42 | 42 |
43 Backend backend = new Backend(); | 43 DatabaseCleaner cleaner = new DatabaseCleaner( |
44 bootstrap.getContext()); | |
45 | |
46 cleaner.start(); | |
47 | |
48 Backend backend = new Backend(cleaner); | |
44 | 49 |
45 ArtifactDatabaseImpl db = new ArtifactDatabaseImpl( | 50 ArtifactDatabaseImpl db = new ArtifactDatabaseImpl( |
46 bootstrap, backend); | 51 bootstrap, backend); |
47 | 52 |
48 Standalone.startAsServer(db); | 53 Standalone.startAsServer(db); |