KEYCLOAK-8494 Use c3p0 connection pool in testsuite

This commit is contained in:
Hynek Mlnarik 2018-10-05 13:20:09 +02:00 committed by Hynek Mlnařík
parent 28b6e4dd5b
commit 531ee3a1be
3 changed files with 18 additions and 0 deletions

View file

@ -406,6 +406,12 @@
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.entitymanager.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>${hibernate.entitymanager.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>

View file

@ -142,6 +142,10 @@
<type>war</type>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
</dependency>
</dependencies>
<build>
@ -185,6 +189,9 @@
<exclude>${exclude.cors.tests}</exclude>
<exclude>${exclude.HoK}</exclude>
</excludes>
<systemPropertyVariables>
<com.mchange.v2.c3p0.VMID>testsuiteVmId</com.mchange.v2.c3p0.VMID>
</systemPropertyVariables>
</configuration>
</plugin>

View file

@ -0,0 +1,5 @@
c3p0.minPoolSize=3
c3p0.maxPoolSize=30
c3p0.forceIgnoreUnresolvedTransactions=true
c3p0.unreturnedConnectionTimeout=60
c3p0.debugUnreturnedConnectionStackTraces=true