Database.getConnectionStatus()

Signature

int getConnectionStatus(String jdbcResourceURI)

Domain

ACTION, CONDITION, BUI

Description

This method can be used to query the health of the underlying connection pool and action can be taken accordingly.

Parameters

NameTypeDescription
jdbcResourceURIStringThe JDBC URI for which connection status is required

Returns

TypeDescription
int0 or 1, 0 indicates that the connections are bad. 1 indicates good connections.

Cautions

none