Updated the code to use the testOnBorrow parameter to keep the connection searching during a disconnect
Tested by creating a routing black hole for the RDS to force the idp to not respond, then delete the route and see that it does respond, simulating a database disconnect and connect.
Security Considerations
There are none, the code changed just looks for the database connection
Changes Proposed
Security Considerations
There are none, the code changed just looks for the database connection