diff --git a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/sql/SQLBackendImpl.java b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/sql/SQLBackendImpl.java index 00d2c3b09..e28ff658c 100644 --- a/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/sql/SQLBackendImpl.java +++ b/cygnus-common/src/main/java/com/telefonica/iot/cygnus/backends/sql/SQLBackendImpl.java @@ -1117,7 +1117,7 @@ private DataSource createConnectionPool(String destination) throws Exception { gPool.setMaxIdle(this.maxPoolIdle); gPool.setMinIdle(this.minPoolIdle); //gPool.setMaxWait(this.maxPoolWait); - gPool.setMinEvictableIdleTimeMillis(this.maxPoolWait); + gPool.setSoftMinEvictableIdleTimeMillis(this.maxPoolWait); pools.put(destination, gPool); // Creates a ConnectionFactory Object Which Will Be Used by the Pool to Create the Connection Object!