Author: davsclaus
Date: Tue Apr 20 08:54:37 2010
New Revision: 935833

URL: http://svn.apache.org/viewvc?rev=935833&view=rev
Log:
Improved shutdown

Modified:
    
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java

Modified: 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java?rev=935833&r1=935832&r2=935833&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
 (original)
+++ 
camel/trunk/camel-core/src/main/java/org/apache/camel/impl/DefaultCamelContext.java
 Tue Apr 20 08:54:37 2010
@@ -1208,7 +1208,11 @@ public class DefaultCamelContext extends
         EventHelper.notifyCamelContextStopping(this);
 
         // stop route inputs in the same order as they was started so we stop 
the very first inputs first
-        shutdownStrategy.shutdown(this, getRouteStartupOrder());
+        try {
+            shutdownStrategy.shutdown(this, getRouteStartupOrder());
+        } catch (Throwable e) {
+            LOG.warn("Error occurred while shutting down routes. This 
exception will be ignored.", e);
+        }
         getRouteStartupOrder().clear();
 
         shutdownServices(routeServices.values());


Reply via email to