factory = getBrokerFactory(cp, poolValue, BundleUtils.getBundleClassLoader());
} else {
factory = getBrokerFactory(cp, poolValue, pui.getClassLoader());
}
OpenJPAConfiguration conf = factory.getConfiguration();
setPersistenceEnvironmentInfo(conf, pui);
_log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME);
// now we can log any transformer exceptions from above
if (transformerException != null) {
if (_log.isTraceEnabled()) {
_log.warn(_loc.get("transformer-registration-error-ex", pui), transformerException);
} else {
_log.warn(_loc.get("transformer-registration-error", pui));
}
}
if (conf.getConnectionRetainModeConstant() == ConnectionRetainModes.CONN_RETAIN_ALWAYS) {
// warn about container managed EMs holding on to connections.
_log.warn(_loc.get("cm-retain-always",conf.getId()));
}
// Create appropriate LifecycleEventManager
loadValidator(factory);