Title: [920] trunk/core/src/main/java/org/servicemix/jbi/framework/AutoDeploymentService.java: check for unloadInstall status
- Revision
- 920
- Author
- rajdavies
- Date
- 2005-11-24 03:13:22 -0500 (Thu, 24 Nov 2005)
Log Message
check for unloadInstall status
Modified Paths
Diff
Modified: trunk/core/src/main/java/org/servicemix/jbi/framework/AutoDeploymentService.java (919 => 920)
--- trunk/core/src/main/java/org/servicemix/jbi/framework/AutoDeploymentService.java 2005-11-23 22:52:44 UTC (rev 919)
+++ trunk/core/src/main/java/org/servicemix/jbi/framework/AutoDeploymentService.java 2005-11-24 08:13:22 UTC (rev 920)
@@ -180,9 +180,12 @@
String componentName = root.getComponent().getIdentification().getName();
log.info("Uninstalling Component: " + componentName);
if (installationService.unloadInstaller(componentName, true)) {
+ installationService.install(tmp, root, autoStart);
+ autoDeployServiceSA(componentName);
+ }else {
+ log.error("Could not update Component " + componentName + " because uninstall failed");
}
- installationService.install(tmp, root, autoStart);
- autoDeployServiceSA(componentName);
+
}
else if (root.getSharedLibrary() != null) {
installationService.doInstallSharedLibrary(tmp, root.getSharedLibrary());