This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit c0a5ca5e3cc1483bc8769ba695ec7f178134fe9a Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Mon May 28 15:00:08 2018 +0200 CAMEL-12502: camel cloud : create a service route policy --- .../apache/camel/impl/cloud/ServiceRegistrationRoutePolicy.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/impl/cloud/ServiceRegistrationRoutePolicy.java b/camel-core/src/main/java/org/apache/camel/impl/cloud/ServiceRegistrationRoutePolicy.java index 54dd8ba..57a3000 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/cloud/ServiceRegistrationRoutePolicy.java +++ b/camel-core/src/main/java/org/apache/camel/impl/cloud/ServiceRegistrationRoutePolicy.java @@ -152,10 +152,6 @@ public class ServiceRegistrationRoutePolicy extends RoutePolicySupport implement // if not check if the route group is defined use the route group serviceName = route.getGroup(); } - if (serviceName == null) { - // finally get the name from the DiscoverableService - serviceName = properties.get(ServiceDefinition.SERVICE_META_NAME); - } if (ObjectHelper.isEmpty(serviceName)) { LOGGER.debug("Route {} has not enough information for service registration", route); @@ -171,10 +167,6 @@ public class ServiceRegistrationRoutePolicy extends RoutePolicySupport implement } } if (serviceId == null) { - // then get the id from the DiscoverableService - serviceId = properties.get(ServiceDefinition.SERVICE_META_ID); - } - if (serviceId == null) { // finally auto generate the service id serviceId = getCamelContext().getUuidGenerator().generateUuid(); } -- To stop receiving notification emails like this one, please contact lburgazz...@apache.org.