Skip to content
Snippets Groups Projects
Commit d6f697d6 authored by jakubs's avatar jakubs
Browse files

BIS-169 enable validation of connection by providing a validation script

SVN: 26598
parent 5f236817
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,7 @@ public class BasicDataSourceFactory implements IDataSourceFactory ...@@ -55,6 +55,7 @@ public class BasicDataSourceFactory implements IDataSourceFactory
dataSource.setMaxIdle(maxIdle); dataSource.setMaxIdle(maxIdle);
dataSource.setMaxActive(maxActive); dataSource.setMaxActive(maxActive);
dataSource.setMaxWait(maxWait); dataSource.setMaxWait(maxWait);
dataSource.setValidationQuery("SELECT 1");
return dataSource; return dataSource;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment