Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Explicitly uninstall bundles on failure rather than remove from region.

If a subsystem fails to install, content and dependency bundles should be explicitly uninstalled rather than simply
removing them from the region. Removal from a region does not result in the bundle being uninstalled; however, uninstalling
a bundle does result in its removal from the region.

git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1420357 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit d6bcc0365bfa9ae978866506a9b281a2d187b17f 1 parent 7df961d
authored December 11, 2012
2  ...ystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/BundleResourceInstaller.java
@@ -204,7 +204,7 @@ public void ended(Coordination coordination) throws Exception {
204 204
 			}
205 205
 
206 206
 			public void failed(Coordination coordination) throws Exception {
207  
-				provisionTo.getRegion().removeBundle(bundle);
  207
+				bundle.uninstall();
208 208
 			}
209 209
 		});
210 210
 		// Set the start level of all bundles managed (i.e. installed) by the

0 notes on commit d6bcc03

Please sign in to comment.
Something went wrong with that request. Please try again.