ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
try {
for (String artifactName : deploymentConfigs) {
org.apache.geronimo.kernel.repository.Artifact configName = org.apache.geronimo.kernel.repository.Artifact.create(artifactName);
if (!configurationManager.isLoaded(configName)) {
RecordingLifecycleMonitor monitor = new RecordingLifecycleMonitor();
try {
configurationManager.loadConfiguration(configName, monitor);
} catch (LifecycleException e) {
log.error("Could not load deployer configuration: " + configName + "\n" + monitor.toString(), e);
}
monitor = new RecordingLifecycleMonitor();
try {
configurationManager.startConfiguration(configName, monitor);
log.info("Started deployer: " + configName);
} catch (LifecycleException e) {
log.error("Could not start deployer configuration: " + configName + "\n" + monitor.toString(), e);
}
}
}
} finally {
ConfigurationUtil.releaseConfigurationManager(kernel, configurationManager);