camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-11002 - Camel-Blueprint, prevent JMX re-registration in case of failed Context
Date Mon, 13 Mar 2017 12:48:49 GMT
Repository: camel
Updated Branches:
  refs/heads/master 9ec03e037 -> 274ae6827


CAMEL-11002 - Camel-Blueprint, prevent JMX re-registration in case of failed Context


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/274ae682
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/274ae682
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/274ae682

Branch: refs/heads/master
Commit: 274ae6827f5776de555add1ba3afd546e7c29a3e
Parents: 9ec03e0
Author: Paolo Antinori <pantinor@redhat.com>
Authored: Mon Mar 13 13:44:50 2017 +0100
Committer: Paolo Antinori <pantinor@redhat.com>
Committed: Mon Mar 13 13:44:50 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/blueprint/BlueprintCamelContext.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/274ae682/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
----------------------------------------------------------------------
diff --git a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
index 35155bf..2282ce4 100644
--- a/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
+++ b/components/camel-blueprint/src/main/java/org/apache/camel/blueprint/BlueprintCamelContext.java
@@ -21,7 +21,6 @@ import java.util.Map;
 import java.util.Properties;
 import java.util.concurrent.atomic.AtomicBoolean;
 
-import org.apache.camel.FailedToCreateRouteException;
 import org.apache.camel.TypeConverter;
 import org.apache.camel.blueprint.handler.CamelNamespaceHandler;
 import org.apache.camel.core.osgi.OsgiCamelContextHelper;
@@ -243,8 +242,9 @@ public class BlueprintCamelContext extends DefaultCamelContext implements
Servic
             // let's set a more suitable TCCL while starting the context
             Thread.currentThread().setContextClassLoader(getApplicationContextClassLoader());
             super.start();
-        } catch (FailedToCreateRouteException e) {
+        } catch (Exception e) {
             routeDefinitionValid.set(false);
+            throw e;
         } finally {
             Thread.currentThread().setContextClassLoader(original);
         }


Mime
View raw message