[jboss-cvs] JBossAS SVN: r96822 - projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Nov 24 07:07:31 EST 2009
Author: alesj
Date: 2009-11-24 07:07:30 -0500 (Tue, 24 Nov 2009)
New Revision: 96822
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ContextRegistryAction.java
Log:
Fix how we handle failure in install.
Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ContextRegistryAction.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ContextRegistryAction.java 2009-11-24 12:05:39 UTC (rev 96821)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/ContextRegistryAction.java 2009-11-24 12:07:30 UTC (rev 96822)
@@ -71,7 +71,15 @@
protected void installAction(OSGiServiceState context) throws Throwable
{
- handleContext(context, true);
+ try
+ {
+ handleContext(context, true);
+ }
+ catch (Throwable t)
+ {
+ uninstall(context);
+ throw t;
+ }
}
protected void uninstallAction(OSGiServiceState context)
More information about the jboss-cvs-commits
mailing list