Description: Disable Spring OSGi support
 because it's not yet in Debian.
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2011-06-21
Forwarded: not-needed
--- a/activemq-spring/src/main/java/org/apache/activemq/hooks/SpringContextHook.java
+++ b/activemq-spring/src/main/java/org/apache/activemq/hooks/SpringContextHook.java
@@ -23,7 +23,6 @@
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.ApplicationContextAware;
 import org.springframework.context.ConfigurableApplicationContext;
-import org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext;
 
 public class SpringContextHook implements Runnable, ApplicationContextAware {
 
@@ -34,13 +33,13 @@
         if (applicationContext instanceof ConfigurableApplicationContext) {
             ((ConfigurableApplicationContext) applicationContext).close();
         }
-        if (applicationContext instanceof OsgiBundleXmlApplicationContext){
+        /*if (applicationContext instanceof OsgiBundleXmlApplicationContext){
             try {
                 ((OsgiBundleXmlApplicationContext)applicationContext).getBundle().stop();
             } catch (BundleException e) {
                 LOG.info("Error stopping OSGi bundle " + e, e);
             }
-        }
+        }*/
 
     }
 
