LOGGER.trace("Verify ConnectionResource");
if (getConnectionResource() == null) {
LOGGER.debug("No ConnectionResource provided. Initialize the ConnectionFactoryResource.");
// We always use a connection pool, even for a pool of 1
ConnectionFactoryResource connections = new ConnectionFactoryResource(getConnectionCount(), getConnectionFactory());
connections.fillPool();
setConnectionResource(connections);
} else if (getConnectionResource() instanceof ConnectionFactoryResource) {
((ConnectionFactoryResource)getConnectionResource()).fillPool();
}
}