My Oracle Support Banner

Equivalent of JBOSS check-valid-connection-sql To Send a Keep Alive Ping Like 'select 1 from dual' (Doc ID 2744144.1)

Last updated on JANUARY 14, 2021

Applies to:

JDBC - Version 12.2.0.0.0 and later
Information in this document applies to any platform.

Goal


Is there any way to have a JDBC connection send a keep alive ping like 'select 1 from dual' to the database in the same way JBOSS application server does it with the configuration:

<validation>
   <check-valid-connection-sql>SELECT 1 FROM DUAL</check-valid-connection-sql>
   <validate-on-match>false</validate-on-match>
   <background-validation>true</background-validation>
   <background-validation-millis>1000</background-validation-millis>
</validation>

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.