aboutsummaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator/src
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-03-29 06:47:22 +0300
committerIttay Stern <ittay.stern@att.com>2020-03-29 06:48:11 +0300
commit81c3ee59ef8196cc349bcff46f9e14a08bb16ec6 (patch)
treee096e9591ae109f6cab7ab7c1b1f7be46bbb0912 /vid-ext-services-simulator/src
parent2c9d0b2dbd2f4a75fcd13fac3d1fc71429326425 (diff)
Configure c3p0 liveness check of ext-svc-simulator
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>
Diffstat (limited to 'vid-ext-services-simulator/src')
-rw-r--r--vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml b/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
index 448b5b380..98b479313 100644
--- a/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
+++ b/vid-ext-services-simulator/src/main/resources/META-INF/persistence.xml
@@ -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