diff -r 60c237bb677a -r 146b3275b792 org/sonews/storage/impl/JDBCDatabase.java --- a/org/sonews/storage/impl/JDBCDatabase.java Sat May 01 18:51:57 2010 +0200 +++ b/org/sonews/storage/impl/JDBCDatabase.java Sun May 09 12:38:46 2010 +0200 @@ -52,7 +52,7 @@ public class JDBCDatabase implements Storage { - public static final int MAX_RESTARTS = 3; + public static final int MAX_RESTARTS = 2; private Connection conn = null; private PreparedStatement pstmtAddArticle1 = null; @@ -110,13 +110,13 @@ { // Load database driver Class.forName( - Config.inst().get(Config.STORAGE_DBMSDRIVER, "java.lang.Object")); + Config.inst().get(Config.LEVEL_FILE, Config.STORAGE_DBMSDRIVER, "java.lang.Object")); // Establish database connection this.conn = DriverManager.getConnection( - Config.inst().get(Config.STORAGE_DATABASE, ""), - Config.inst().get(Config.STORAGE_USER, "root"), - Config.inst().get(Config.STORAGE_PASSWORD, "")); + Config.inst().get(Config.LEVEL_FILE, Config.STORAGE_DATABASE, ""), + Config.inst().get(Config.LEVEL_FILE, Config.STORAGE_USER, "root"), + Config.inst().get(Config.LEVEL_FILE, Config.STORAGE_PASSWORD, "")); this.conn.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); if(this.conn.getTransactionIsolation() != Connection.TRANSACTION_SERIALIZABLE)