IDEMPIERE-3585 Oracle APPARENT DEADLOCK warnings - Correção Oracle

This commit is contained in:
Eduardo Jaremicki Moreira 2018-01-19 13:15:57 +01:00
parent e4c872275b
commit e85497d697
1 changed files with 2 additions and 1 deletions

View File

@ -663,6 +663,7 @@ public class DB_Oracle implements AdempiereDatabase
boolean testConnectionOnCheckout = getBooleanProperty(poolProperties, "TestConnectionOnCheckout", false);
String mlogClass = getStringProperty(poolProperties, "com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog");
int checkoutTimeout = getIntProperty(poolProperties, "CheckoutTimeout", 0);
int statementCacheNumDeferredCloseThreads = getIntProperty(poolProperties, "StatementCacheNumDeferredCloseThreads", 1);
try
{
System.setProperty("com.mchange.v2.log.MLog", mlogClass);
@ -681,7 +682,7 @@ public class DB_Oracle implements AdempiereDatabase
cpds.setTestConnectionOnCheckout(testConnectionOnCheckout);
if (checkoutTimeout > 0)
cpds.setCheckoutTimeout(checkoutTimeout);
cpds.setStatementCacheNumDeferredCloseThreads(statementCacheNumDeferredCloseThreads);
cpds.setMaxIdleTimeExcessConnections(maxIdleTimeExcessConnections);
cpds.setMaxIdleTime(maxIdleTime);
if (Ini.isClient())