logger.debug("No explicit DBCP config location, will use default location: "
+ DBCP_PROPERTIES);
location = DBCP_PROPERTIES;
}
Resource baseConfiguration = nodeDescriptor.getConfigurationSource();
if (baseConfiguration == null) {
throw new CayenneRuntimeException(
"Null 'configurationSource' for nodeDescriptor '%s'",
nodeDescriptor.getName());
}
Resource dbcpConfiguration = baseConfiguration.getRelativeResource(location);
if (dbcpConfiguration == null) {
throw new CayenneRuntimeException(
"Missing DBCP configuration '%s' for nodeDescriptor '%s'",
location,
nodeDescriptor.getName());