How to do a health check on JDBC connection to see if is up and running ?

How to do a health check on JDBC connection to see if is up and running ?

you can use the service pub.art.connection:queryConnectionState

You also can run: Select 1;
this one actually reaching the DB