Repository: camel Updated Branches: refs/heads/master 25f0078c1 -> c80d56fcb
CAMEL-9024: Fixed Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c80d56fc Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c80d56fc Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c80d56fc Branch: refs/heads/master Commit: c80d56fcb8dd3cb60a414944028591dba82385d9 Parents: 25f0078 Author: Claus Ibsen <[email protected]> Authored: Mon Jul 27 15:52:21 2015 +0200 Committer: Claus Ibsen <[email protected]> Committed: Mon Jul 27 15:52:21 2015 +0200 ---------------------------------------------------------------------- .../org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/c80d56fc/camel-core/src/main/java/org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java index ac08630..17aef16 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java +++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultRuntimeEndpointRegistry.java @@ -232,6 +232,7 @@ public class DefaultRuntimeEndpointRegistry extends EventNotifierSupport impleme } } } else if (extended && event instanceof ExchangeCreatedEvent) { + // we only capture details in extended mode ExchangeCreatedEvent ece = (ExchangeCreatedEvent) event; Endpoint endpoint = ece.getExchange().getFromEndpoint(); String routeId = ece.getExchange().getFromRouteId(); @@ -240,7 +241,7 @@ public class DefaultRuntimeEndpointRegistry extends EventNotifierSupport impleme if (key != null) { inputUtilization.onHit(key); } - } else { + } else if (event instanceof ExchangeSendingEvent) { ExchangeSendingEvent ese = (ExchangeSendingEvent) event; Endpoint endpoint = ese.getEndpoint(); String routeId = getRouteId(ese.getExchange());
