Created
April 13, 2015 01:35
-
-
Save kabronkline/e3b2a38bc788deb15b58 to your computer and use it in GitHub Desktop.
Tomcat JDBC Resilient Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| datasource.appdb.url=jdbc:hsqldb:hsql://localhost/xdb | |
| datasource.appdb.user=sa | |
| datasource.appdb.name=EmbeddedDatabaseConnectionPool | |
| datasource.appdb.validationQuery=select 1 from INFORMATION_SCHEMA.SYSTEM_USERS | |
| datasource.appdb.testOnBorrow=true | |
| datasource.appdb.testOnConnect=true | |
| datasource.appdb.validationInterval=15000 | |
| datasource.appdb.maxActive=5 | |
| datasource.appdb.initialSize=1 | |
| datasource.appdb.logValidationErrors=true |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using spring-boot and connecting to hsqldb. Connections are validated on initial connection and when they are borrowed (at most once every 15 seconds on borrow).