Skip to content

Commit

Permalink
Configuring Hikari as the default connection pool for JDBC and JPA (W…
Browse files Browse the repository at this point in the history
…iP).
  • Loading branch information
nmihajlovski committed May 29, 2017
1 parent b66f3d3 commit 0d20c04
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 8 additions & 0 deletions rapidoid-commons/src/main/resources/built-in-config.yml
Expand Up @@ -72,6 +72,14 @@ hibernate:
acquireIncrement: ${c3p0.acquireIncrement}
maxStatementsPerConnection: ${c3p0.maxStatementsPerConnection}
idleConnectionTestPeriod: ${c3p0.idleConnectionTestPeriod}
hikari:
# minimumIdle: 20
# maximumPoolSize: 100
# idleTimeout: 30000
dataSource:
url: ${jdbc.url}
username: ${jdbc.username}
password: ${jdbc.password}

c3p0:
debug: false
Expand Down
11 changes: 3 additions & 8 deletions rapidoid-quick/pom.xml
Expand Up @@ -45,20 +45,15 @@
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${validator.version}</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>${c3p0.version}</version>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>${hikari.version}</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
Expand Down

0 comments on commit 0d20c04

Please sign in to comment.