if (isConnectorRuntimeInitialized()) {
ConnectorRuntime cr = getConnectorRuntime();
if (cr != null) {
// clean up will take care of any system RA resources, pools
// (including pools via datasource-definition)
cr.cleanUpResourcesAndShutdownAllActiveRAs();
}
} else {
if(logger.isLoggable(Level.FINEST)) {
logger.finest("ConnectorRuntime not initialized, hence skipping " +
"resource-adapters shutdown, resources, pools cleanup");