diff --git a/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/config/WSProdConfig.java b/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/config/WSProdConfig.java index cceb9fcd..5f719d2e 100644 --- a/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/config/WSProdConfig.java +++ b/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/config/WSProdConfig.java @@ -53,8 +53,8 @@ public class WSProdConfig extends WSBaseConfig { @Value("${datasource.driverClassName}") String dataSourceDriver; - @Value("${datasource.failFast}") - String dataSourceFailFast; + @Value("${datasource.failTimeout}") + String dataSourceFailTimeout; @Value("${datasource.maximumPoolSize}") String dataSourceMaximumPoolSize; @@ -87,6 +87,7 @@ public DataSource dataSource() { config.setMaxLifetime(Integer.parseInt(dataSourceMaxLifetime)); config.setIdleTimeout(Integer.parseInt(dataSourceIdleTimeout)); config.setConnectionTimeout(Integer.parseInt(dataSourceConnectionTimeout)); + config.setInitializationFailTimeout(Integer.parseInt(dataSourceFailTimeout)); return new HikariDataSource(config); } diff --git a/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/application.properties b/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/application.properties index 21ee5ecd..2b30a0a6 100644 --- a/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/application.properties +++ b/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/resources/application.properties @@ -19,7 +19,7 @@ datasource.url=jdbc:postgresql://localhost:5432/dpppt datasource.username=dpppt datasource.password=dpppt datasource.driverClassName=org.postgresql.ds.PGSimpleDataSource -datasource.failFast=true +datasource.failTimeout=1 datasource.maximumPoolSize=5 datasource.maxLifetime=1700000 datasource.idleTimeout=600000