camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-9795: camel-zipkin - Start eager to init before routes are being started.
Date Mon, 11 Apr 2016 07:00:54 GMT
Repository: camel
Updated Branches:
  refs/heads/master 7a8771311 -> 7b748e9e2


CAMEL-9795: camel-zipkin - Start eager to init before routes are being started.


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

Branch: refs/heads/master
Commit: 7b748e9e2b6da0299890d048cbba7be739175c93
Parents: 7a87713
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Mon Apr 11 08:57:14 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Mon Apr 11 08:57:14 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/zipkin/ZipkinTracer.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7b748e9e/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java
----------------------------------------------------------------------
diff --git a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java
b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java
index 3081285..8a5b765 100644
--- a/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java
+++ b/components/camel-zipkin/src/main/java/org/apache/camel/zipkin/ZipkinTracer.java
@@ -126,7 +126,8 @@ public class ZipkinTracer extends ServiceSupport implements RoutePolicyFactory,
     public void init(CamelContext camelContext) {
         if (!camelContext.hasService(this)) {
             try {
-                camelContext.addService(this, true);
+                // start this service eager so we init before Camel is starting up
+                camelContext.addService(this, true, true);
             } catch (Exception e) {
                 throw ObjectHelper.wrapRuntimeCamelException(e);
             }


Mime
View raw message