Commit a9f16fc0 authored by Guus der Kinderen's avatar Guus der Kinderen

Merge pull request #321 from AlphaGit/OF-958-avoid-db-when-initializing-db-connections

[OF-958] Avoiding DB properties when reading DB connection configuration
parents 9cfa4aa9 c4ed434f
......@@ -74,8 +74,8 @@ public class DbConnectionManager {
/** True if the database supports the Statement.setFetchSize()) method. */
static boolean pstmt_fetchSizeSupported = true;
private static final String SETTING_DATABASE_MAX_RETRIES = "database.defaultProvider.maxRetries";
private static final String SETTING_DATABASE_RETRY_DELAY = "database.defaultProvider.retryDelay";
private static final String SETTING_DATABASE_MAX_RETRIES = "database.maxRetries";
private static final String SETTING_DATABASE_RETRY_DELAY = "database.retryDelay";
private static DatabaseType databaseType = DatabaseType.unknown;
......@@ -121,8 +121,8 @@ public class DbConnectionManager {
ensureConnectionProvider();
Integer currentRetryCount = 0;
Integer maxRetries = JiveGlobals.getIntProperty(SETTING_DATABASE_MAX_RETRIES, 10);
Integer retryWait = JiveGlobals.getIntProperty(SETTING_DATABASE_RETRY_DELAY, 250); // milliseconds
Integer maxRetries = JiveGlobals.getXMLProperty(SETTING_DATABASE_MAX_RETRIES, 10);
Integer retryWait = JiveGlobals.getXMLProperty(SETTING_DATABASE_RETRY_DELAY, 250); // milliseconds
SQLException lastException = null;
do {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment