Configure c3p0 liveness check of ext-svc-simulator 30/104630/1
authorIttay Stern <ittay.stern@att.com>
Sun, 29 Mar 2020 03:47:22 +0000 (06:47 +0300)
committerIttay Stern <ittay.stern@att.com>
Sun, 29 Mar 2020 03:48:11 +0000 (06:48 +0300)
Check the viability of ongoing connections quite rapidly, allow
stable log-ins while tests.

"Your application should experience broken or stale Connections only very rarely"
 - https://www.mchange.com/projects/c3p0/#simple_advice_on_connection_testing

Issue-ID: VID-647

Change-Id: If5f3683a781c2c3bccb7b118ec96205000ee4547
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml

index 448b5b3..98b4793 100644 (file)
@@ -18,6 +18,7 @@
             <property name="hibernate.connection.password" value="euser"/>
             <property name="hibernate.connection.url" value="jdbc:mariadb://localhost:3306/vid_portal"/>
             <property name="hibernate.id.new_generator_mappings" value="false"/>
+            <property name="hibernate.c3p0.idle_test_period" value="30"/>
         </properties>
     </persistence-unit>
 </persistence>
\ No newline at end of file