diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java index 7263f3df44a10..1e90f04be211f 100644 --- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java +++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java @@ -204,6 +204,7 @@ public String getSourceLocationShort() { @Override public void initializeServices() throws Exception { + services.clear(); // gather all the services for this route gatherServices(services); } @@ -634,7 +635,7 @@ protected void gatherServices(List services) throws Exception { } } - protected void gatherRootServices(List services) throws Exception { + private void gatherRootServices(List services) throws Exception { Endpoint endpoint = getEndpoint(); consumer = endpoint.createConsumer(processor); if (consumer != null) {