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 AUGUST 30, 2023
Applies to:
JDBC - Version 12.2.0.0.0 and laterInformation 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 |