CAMEL-15925: Remove spring boot cloud examples
diff --git a/README.adoc b/README.adoc
index f3cc342..0163813 100644
--- a/README.adoc
+++ b/README.adoc
@@ -27,7 +27,7 @@
== Examples
// examples: START
-Number of Examples: 48 (0 deprecated)
+Number of Examples: 46 (0 deprecated)
[width="100%",cols="4,2,4",options="header"]
|===
@@ -69,10 +69,6 @@
| link:camel-example-spring-boot-servicecall/README.adoc[Spring Boot ServiceCall] (camel-example-spring-boot-servicecall) | Cloud | An example showing how to work with Camel ServiceCall EIP and Spring Boot
-| link:camel-example-spring-cloud-servicecall/README.adoc[Spring Cloud Servicecall] (camel-example-spring-cloud-servicecall) | Cloud | An example showing how to work with Camel ServiceCall EIP and Spring Cloud
-
-| link:camel-example-spring-cloud-serviceregistry/README.adoc[Spring Cloud ServiceRegistry] (camel-example-spring-cloud-serviceregistry) | Cloud | An example showing how to work with Camel Service registry and Spring Cloud
-
| link:camel-example-spring-boot-clustered-route-controller/readme.adoc[Spring Boot Clustered Route Controller] (camel-example-spring-boot-clustered-route-controller) | Clustering | An example showing how to work with Camel's Clustered Route Controller and Spring Boot
| link:camel-example-spring-boot-master/readme.adoc[Spring Boot Master] (camel-example-spring-boot-master) | Clustering | An example showing how to work with Camel's Master component and Spring Boot
diff --git a/camel-example-spring-cloud-servicecall/README.adoc b/camel-example-spring-cloud-servicecall/README.adoc
deleted file mode 100644
index b1919d9..0000000
--- a/camel-example-spring-cloud-servicecall/README.adoc
+++ /dev/null
@@ -1,68 +0,0 @@
-== Spring Cloud and ServiceCall EIP Example
-
-This example show how to use Camel with ServiceCall EIP with spring-cloud and consul.
-
-This example includes two maven modules:
-
- - service that exposes a number of services
- - consumer that consumes services
-
-== Configuration
-
-The consumer is configured in the src/main/resources/application.properties
-
-=== Build
-
-You can build this example using
-
- mvn compile
-
-=== Run the example
-
-Using multiple shells:
-
- - start consul:
-
- $ cd service
- $ src/main/bash/consul-run-linux.sh (for linux)
- $ src/main/bash/consul-run-osx.sh (for mac osx)
-
- - start the service:
-
- $ cd service
- $ mvn spring-boot:run
-
- - start the consumer
-
- $ cd consumer
- $ mvn spring-boot:run
-
-=== Test the example:
-
-In a new shell:
-
- $ curl localhost:8080/camel/serviceCall/service1
- Hi!, I'm service-1 on camel-1/route1
- $ curl localhost:8080/camel/serviceCall/service2
- Hi!, I'm service-1 on camel-1/route2
-
-If you keep calling the http endpoint you'll notice they are consumed using a round robin policy and that only the services matching specific tags are consumed.
-
-== Web console
-
-You can open the Consul web console
-
- http://localhost:8500/ui
-
-Where you can find information about the services and its state.
-
-=== Help and contributions
-
-If you hit any problem using Camel or have some feedback, then please
-https://camel.apache.org/support.html[let us know].
-
-We also love contributors, so
-https://camel.apache.org/contributing.html[get involved] :-)
-
-The Camel riders!
-
diff --git a/camel-example-spring-cloud-servicecall/consumer/pom.xml b/camel-example-spring-cloud-servicecall/consumer/pom.xml
deleted file mode 100644
index fff87b4..0000000
--- a/camel-example-spring-cloud-servicecall/consumer/pom.xml
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>camel-example-spring-cloud-servicecall</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-servicecall-consumer</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: SC :: Consumer</name>
- <description>An example showing how to work with Camel ServiceCall EIP and Spring Cloud (Consumer)</description>
-
- <properties>
- <category>Cloud</category>
-
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <spring.boot-version>${spring-boot-version}</spring.boot-version>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Spring Boot BOM -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring.boot-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-consul-dependencies</artifactId>
- <version>${spring-cloud-consul-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- Camel BOM -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-dependencies</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <!-- Spring Boot -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-consul-discovery</artifactId>
- </dependency>
-
- <!-- Camel -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-cloud-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-undertow-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-servlet-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-jackson-starter</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-
-</project>
diff --git a/camel-example-spring-cloud-servicecall/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java b/camel-example-spring-cloud-servicecall/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java
deleted file mode 100644
index 71af9a5..0000000
--- a/camel-example-spring-cloud-servicecall/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
-import org.springframework.stereotype.Component;
-
-//CHECKSTYLE:OFF
-/**
- * A sample Spring Boot application that starts the Camel routes.
- */
-@SpringBootApplication
-@EnableDiscoveryClient
-public class ConsumerApplication {
- @Component
- public class ConsumerRoute extends RouteBuilder {
- @Override
- public void configure() throws Exception {
- rest("/serviceCall")
- .get("/{serviceId}")
- .to("direct:service-call");
-
- from("direct:service-call")
- .setBody().constant(null)
- .removeHeaders("CamelHttp*")
- .to("log:service-call?level=INFO&showAll=true&multiline=true")
- .choice()
- .when(header("serviceId").isEqualTo("service1"))
- .serviceCall("service-1")
- .convertBodyTo(String.class)
- .log("service-1 : ${body}")
- .when(header("serviceId").isEqualTo("service2"))
- .serviceCall("service-2")
- .convertBodyTo(String.class)
- .log("service-1 : ${body}");
- }
- }
-
- /**
- * A main method to start this application.
- */
- public static void main(String[] args) {
- SpringApplication.run(ConsumerApplication.class, args);
- }
-
-}
-//CHECKSTYLE:ON
diff --git a/camel-example-spring-cloud-servicecall/consumer/src/main/resources/application.properties b/camel-example-spring-cloud-servicecall/consumer/src/main/resources/application.properties
deleted file mode 100644
index 1945a73..0000000
--- a/camel-example-spring-cloud-servicecall/consumer/src/main/resources/application.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-spring.application.name=consumer
-
-# Spring Boot
-management.endpoints.enabled-by-default=false
-management.endpoint.health.enabled=true
-
-# Spring cloud
-spring.cloud.consul.config.enabled=false
-spring.cloud.consul.discovery.enabled=true
-spring.cloud.consul.discovery.server-list-query-tags[service-1] = camel
-spring.cloud.consul.discovery.server-list-query-tags[service-2] = service-call
-spring.cloud.consul.discovery.register = false
-spring.main.allow-bean-definition-overriding = true
-
-# Camel
-camel.springboot.main-run-controller=true
-camel.springboot.jmx-enabled=false
-
-camel.rest.component=servlet
-camel.rest.binding-mode=auto
-
-# Configure the underlying Service Call component
-camel.cloud.service-call.component = undertow
diff --git a/camel-example-spring-cloud-servicecall/consumer/src/main/resources/logback.xml b/camel-example-spring-cloud-servicecall/consumer/src/main/resources/logback.xml
deleted file mode 100644
index dbeb95e..0000000
--- a/camel-example-spring-cloud-servicecall/consumer/src/main/resources/logback.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<configuration>
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
- </encoder>
- </appender>
- <appender name="FILE" class="ch.qos.logback.core.FileAppender">
- <encoder>
- <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
- </encoder>
- <file>target/camel-example-spring-boot-servicecall-consumer.log</file>
- </appender>
- <root level="INFO">
- <!--<appender-ref ref="FILE"/>-->
- <appender-ref ref="STDOUT"/>
- </root>
-</configuration>
\ No newline at end of file
diff --git a/camel-example-spring-cloud-servicecall/pom.xml b/camel-example-spring-cloud-servicecall/pom.xml
deleted file mode 100644
index 822fe08..0000000
--- a/camel-example-spring-cloud-servicecall/pom.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>examples</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-servicecall</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: ServiceCall</name>
- <description>An example showing how to work with Camel ServiceCall EIP and Spring Cloud</description>
- <packaging>pom</packaging>
-
- <properties>
- <category>Cloud</category>
- </properties>
-
- <modules>
- <module>consumer</module>
- <module>service</module>
- </modules>
-
-</project>
diff --git a/camel-example-spring-cloud-servicecall/service/pom.xml b/camel-example-spring-cloud-servicecall/service/pom.xml
deleted file mode 100644
index 440f332..0000000
--- a/camel-example-spring-cloud-servicecall/service/pom.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>camel-example-spring-cloud-servicecall</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-servicecall-service</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: SC :: Service</name>
- <description>An example showing how to work with Camel ServiceCall EIP and Spring Cloud (Service)</description>
-
- <properties>
- <category>Cloud</category>
-
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <spring.boot-version>${spring-boot-version}</spring.boot-version>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Spring Boot BOM -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring.boot-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- Camel BOM -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-dependencies</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <!-- Spring Boot -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
-
- <!-- Camel -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-undertow-starter</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-linux.sh b/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-linux.sh
deleted file mode 100755
index c254bab..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-linux.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-CONSUL_VER="1.6.1"
-CONSUL_ZIP="consul_${CONSUL_VER}_linux_amd64.zip"
-
-# cleanup
-rm -rf "target/consul-data"
-rm -rf "target/consul-config"
-rm -rf "target/consul"
-
-mkdir -p target/
-mkdir -p target/consul-data
-mkdir -p target/consul-config
-
-if [ ! -f target/${CONSUL_ZIP} ]; then
- echo Downloading: https://releases.hashicorp.com/consul/${CONSUL_VER}/${CONSUL_ZIP}
- wget "https://releases.hashicorp.com/consul/${CONSUL_VER}/${CONSUL_ZIP}" -O target/${CONSUL_ZIP}
-fi
-
-unzip -d target target/${CONSUL_ZIP}
-chmod +x target/consul
-
-target/consul \
- agent \
- -server \
- -bootstrap \
- -datacenter camel \
- -advertise 127.0.0.1 \
- -bind 0.0.0.0 \
- -log-level trace \
- -data-dir target/consul-data \
- -config-dir src/main/resources/consul \
- -ui
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-osx.sh b/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-osx.sh
deleted file mode 100755
index d41e1c9..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/bash/consul-run-osx.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-
-CONSUL_VER="1.6.1"
-CONSUL_ZIP="consul_${CONSUL_VER}_darwin_amd64.zip"
-
-# cleanup
-rm -rf "target/consul-data"
-rm -rf "target/consul-config"
-rm -rf "target/consul"
-
-mkdir -p target/
-mkdir -p target/consul-data
-mkdir -p target/consul-config
-
-if [ ! -f target/$CONSUL_ZIP ]; then
- echo Downloading: https://releases.hashicorp.com/consul/$CONSUL_VER/$CONSUL_ZIP
- curl -o target/$CONSUL_ZIP "https://releases.hashicorp.com/consul/$CONSUL_VER/$CONSUL_ZIP"
-fi
-
-unzip -d target target/$CONSUL_ZIP
-chmod +x target/consul
-
-target/consul \
- agent \
- -server \
- -bootstrap \
- -datacenter camel \
- -advertise 127.0.0.1 \
- -bind 0.0.0.0 \
- -log-level trace \
- -data-dir target/consul-data \
- -config-dir src/main/resources/consul \
- -ui
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/java/org/apache/camel/example/ServiceApplication.java b/camel-example-spring-cloud-servicecall/service/src/main/java/org/apache/camel/example/ServiceApplication.java
deleted file mode 100644
index a625d36..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/java/org/apache/camel/example/ServiceApplication.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.stereotype.Component;
-
-//CHECKSTYLE:OFF
-/**
- * A sample Spring Boot application that starts the Camel routes.
- */
-@SpringBootApplication
-public class ServiceApplication {
-
- @Component
- public class Service1Route extends RouteBuilder {
- @Override
- public void configure() throws Exception {
- from("undertow:http://localhost:9011")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-1 on ${camelId}/${routeId}");
- from("undertow:http://localhost:9012")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-1 on ${camelId}/${routeId}");
- from("undertow:http://localhost:9013")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-1 on ${camelId}/${routeId}");
- }
- }
-
- @Component
- public class Service2Route extends RouteBuilder {
- @Override
- public void configure() throws Exception {
- from("undertow:http://localhost:9021")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-2 on ${camelId}/${routeId}");
- from("undertow:http://localhost:9022")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-2 on ${camelId}/${routeId}");
- from("undertow:http://localhost:9023")
- .to("log:org.apache.camel.example?level=INFO&showAll=true&multiline=true")
- .transform().simple("Hi!, I'm service-2 on ${camelId}/${routeId}");
- }
- }
-
- /**
- * A main method to start this application.
- */
- public static void main(String[] args) {
- SpringApplication.run(ServiceApplication.class, args);
- }
-
-}
-//CHECKSTYLE:ON
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/resources/application.properties b/camel-example-spring-cloud-servicecall/service/src/main/resources/application.properties
deleted file mode 100644
index cc61bad..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/resources/application.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# Spring Boot
-management.endpoints.enabled-by-default=false
-management.endpoint.health.enabled=true
-
-# Camel
-camel.springboot.main-run-controller=true
-camel.springboot.jmx-enabled=false
-
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/resources/consul/services.json b/camel-example-spring-cloud-servicecall/service/src/main/resources/consul/services.json
deleted file mode 100644
index ca43a54..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/resources/consul/services.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "services": [{
- "id": "s1i1", "name": "service-1", "tags": ["camel", "service-call"], "address": "localhost", "port": 9011
- }, {
- "id": "s1i2", "name": "service-1", "tags": ["camel", "service-call"], "address": "localhost", "port": 9012
- }, {
- "id": "s1i3", "name": "service-1", "tags": ["camel", "service-call"], "address": "localhost", "port": 9013
- }, {
- "id": "s1i4", "name": "service-1", "address": "localhost", "port": 9014
- }, {
- "id": "s2i1", "name": "service-2", "tags": ["camel", "service-call"], "address": "localhost", "port": 9021
- }, {
- "id": "s2i2", "name": "service-2", "tags": ["camel", "service-call"], "address": "localhost", "port": 9022
- }, {
- "id": "s2i3", "name": "service-2", "tags": ["camel", "service-call"], "address": "localhost", "port": 9023
- }, {
- "id": "s2i4", "name": "service-2", "address": "localhost", "port": 9024
- }]
-}
\ No newline at end of file
diff --git a/camel-example-spring-cloud-servicecall/service/src/main/resources/logback.xml b/camel-example-spring-cloud-servicecall/service/src/main/resources/logback.xml
deleted file mode 100644
index 4bbf10e..0000000
--- a/camel-example-spring-cloud-servicecall/service/src/main/resources/logback.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<configuration>
- <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
- <encoder>
- <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
- </encoder>
- </appender>
- <appender name="FILE" class="ch.qos.logback.core.FileAppender">
- <encoder>
- <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
- </encoder>
- <file>target/camel-example-spring-boot-servicecall-service-1.log</file>
- </appender>
- <root level="INFO">
- <!--<appender-ref ref="FILE"/>-->
- <appender-ref ref="STDOUT"/>
- </root>
-</configuration>
\ No newline at end of file
diff --git a/camel-example-spring-cloud-serviceregistry/README.adoc b/camel-example-spring-cloud-serviceregistry/README.adoc
deleted file mode 100644
index d4c04f8..0000000
--- a/camel-example-spring-cloud-serviceregistry/README.adoc
+++ /dev/null
@@ -1,72 +0,0 @@
-== Spring Cloud and ServiceCall EIP Example
-
-This example show how to use Camel with Service Registry, spring-cloud and consul.
-
-This example includes two maven modules:
-
- - service that exposes a number of services
- - consumer that consumes services
-
-=== Configuration
-
-The consumer is configured in the src/main/resources/application.properties
-
-=== Build
-
-You can build this example using
-
- mvn compile
-
-=== Run the example
-
-Using multiple shells:
-
- - start consul:
-
- docker run --rm -ti --publish 8500:8500 \
- consul:1.6.1 \
- agent \
- -dev \
- -server \
- -ui \
- -bootstrap \
- -datacenter camel \
- -client 0.0.0.0 \
- -log-level trace
-
- - start the service:
-
- $ cd service
- $ mvn spring-boot:run
-
-- start the consumer
-
- $ cd consumer
- $ mvn spring-boot:run
-
-=== Test the example:
-
-In a new shell:
-
- $ curl localhost:8080/camel/serviceCall
- Hi!, I'm service-1 on path: /path/to/service/1
- $ curl localhost:8080/camel/serviceCall
- Hi!, I'm service-1 on path: /path/to/service/2
-
-=== Web console
-
-You can open the Consul web console
-
- http://localhost:8500/ui
-
-Where you can find information about the services and its state.
-
-=== Help and contributions
-
-If you hit any problem using Camel or have some feedback, then please
-https://camel.apache.org/support.html[let us know].
-
-We also love contributors, so
-https://camel.apache.org/contributing.html[get involved] :-)
-
-The Camel riders!
diff --git a/camel-example-spring-cloud-serviceregistry/consumer/pom.xml b/camel-example-spring-cloud-serviceregistry/consumer/pom.xml
deleted file mode 100644
index 5f20ed6..0000000
--- a/camel-example-spring-cloud-serviceregistry/consumer/pom.xml
+++ /dev/null
@@ -1,142 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>camel-example-spring-cloud-serviceregistry</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-serviceregistry-consumer</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: SR :: Consumer</name>
- <description>An example showing how to work with Camel Service Registry and Spring Cloud (Consumer)</description>
-
- <properties>
- <category>Cloud</category>
-
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <spring.boot-version>${spring-boot-version}</spring.boot-version>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Spring Boot BOM -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring.boot-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-consul-dependencies</artifactId>
- <version>${spring-cloud-consul-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- Camel BOM -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-dependencies</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <!-- Spring Boot -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-consul-discovery</artifactId>
- </dependency>
-
- <!-- Camel -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-cloud-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-cloud-netflix-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-cloud-consul-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-undertow-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-servlet-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-jackson-starter</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-
-</project>
diff --git a/camel-example-spring-cloud-serviceregistry/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java b/camel-example-spring-cloud-serviceregistry/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java
deleted file mode 100644
index 54541a4..0000000
--- a/camel-example-spring-cloud-serviceregistry/consumer/src/main/java/org/apache/camel/example/ConsumerApplication.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
-import org.springframework.stereotype.Component;
-
-//CHECKSTYLE:OFF
-/**
- * A sample Spring Boot application that starts the Camel routes.
- */
-@SpringBootApplication
-@EnableDiscoveryClient
-public class ConsumerApplication {
- @Component
- public class ConsumerRoute extends RouteBuilder {
- @Override
- public void configure() throws Exception {
- rest("/serviceCall")
- .verb("GET")
- .to("direct:service-call");
-
- from("direct:service-call")
- .setBody().constant(null)
- .removeHeaders("CamelHttp*")
- .serviceCall("my-service")
- .convertBodyTo(String.class)
- .log("answer: ${body}");
- }
- }
-
- /**
- * A main method to start this application.
- */
- public static void main(String[] args) {
- SpringApplication.run(ConsumerApplication.class, args);
- }
-
-}
-//CHECKSTYLE:ON
diff --git a/camel-example-spring-cloud-serviceregistry/consumer/src/main/resources/application.properties b/camel-example-spring-cloud-serviceregistry/consumer/src/main/resources/application.properties
deleted file mode 100644
index acd6932..0000000
--- a/camel-example-spring-cloud-serviceregistry/consumer/src/main/resources/application.properties
+++ /dev/null
@@ -1,44 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# Logging
-logging.level.org.apache.camel.spring.cloud = DEBUG
-
-# Spring Boot
-management.endpoints.enabled-by-default=false
-management.endpoint.health.enabled=true
-
-spring.application.name = ${random.uuid}
-
-# Spring cloud
-spring.cloud.consul.enabled = true
-spring.cloud.consul.config.enabled = false
-spring.cloud.consul.discovery.enabled = true
-spring.cloud.service-registry.auto-registration.enabled = false
-spring.main.allow-bean-definition-overriding = true
-ribbon.enabled = false
-
-# Camel
-camel.springboot.main-run-controller=true
-camel.springboot.jmx-enabled=false
-
-camel.rest.component = servlet
-camel.rest.binding-mode = auto
-
-# Camel Service Call
-camel.cloud.service-call.component = undertow
-
diff --git a/camel-example-spring-cloud-serviceregistry/pom.xml b/camel-example-spring-cloud-serviceregistry/pom.xml
deleted file mode 100644
index 70a7e94..0000000
--- a/camel-example-spring-cloud-serviceregistry/pom.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>examples</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-serviceregistry</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: ServiceRegistry</name>
- <description>An example showing how to work with Camel Service registry and Spring Cloud</description>
- <packaging>pom</packaging>
-
- <properties>
- <category>Cloud</category>
- <title>Spring Cloud ServiceRegistry</title>
- </properties>
-
- <modules>
- <module>consumer</module>
- <module>service</module>
- </modules>
-
-</project>
diff --git a/camel-example-spring-cloud-serviceregistry/service/pom.xml b/camel-example-spring-cloud-serviceregistry/service/pom.xml
deleted file mode 100644
index 0f58055..0000000
--- a/camel-example-spring-cloud-serviceregistry/service/pom.xml
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.camel.springboot.example</groupId>
- <artifactId>camel-example-spring-cloud-serviceregistry</artifactId>
- <version>3.7.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>camel-example-spring-cloud-serviceregistry-service</artifactId>
- <name>Camel SB Examples :: Spring Cloud :: SR :: Service</name>
- <description>An example showing how to work with Camel Service Registry and Spring Cloud (Service)</description>
-
- <properties>
- <category>Cloud</category>
-
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <spring.boot-version>${spring-boot-version}</spring.boot-version>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <!-- Spring Boot BOM -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring.boot-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-consul-dependencies</artifactId>
- <version>${spring-cloud-consul-version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- Camel BOM -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-dependencies</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
-
- <!-- Spring Boot -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-undertow</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-consul-discovery</artifactId>
- </dependency>
-
- <!-- Camel -->
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-undertow-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-cloud-consul-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-service-starter</artifactId>
- </dependency>
-
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot-version}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
-</project>
diff --git a/camel-example-spring-cloud-serviceregistry/service/src/main/java/org/apache/camel/example/ServiceApplication.java b/camel-example-spring-cloud-serviceregistry/service/src/main/java/org/apache/camel/example/ServiceApplication.java
deleted file mode 100644
index 142fcbd..0000000
--- a/camel-example-spring-cloud-serviceregistry/service/src/main/java/org/apache/camel/example/ServiceApplication.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.example;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.stereotype.Component;
-import org.springframework.util.SocketUtils;
-
-//CHECKSTYLE:OFF
-/**
- * A sample Spring Boot application that starts the Camel routes.
- */
-@SpringBootApplication
-public class ServiceApplication {
-
- @Component
- public class Services extends RouteBuilder {
- @Override
- public void configure() throws Exception {
- fromF("service:my-service:undertow:http://localhost:%d/path/to/service/1", SocketUtils.findAvailableTcpPort())
- .transform().simple("Hi!, I'm service-1 on path: /path/to/service/1");
- fromF("service:my-service:undertow:http://localhost:%d/path/to/service/2", SocketUtils.findAvailableTcpPort())
- .transform().simple("Hi!, I'm service-1 on path: /path/to/service/2");
- }
- }
-
- /**
- * A main method to start this application.
- */
- public static void main(String[] args) {
- SpringApplication.run(ServiceApplication.class, args);
- }
-
-}
-//CHECKSTYLE:ON
diff --git a/camel-example-spring-cloud-serviceregistry/service/src/main/resources/application.properties b/camel-example-spring-cloud-serviceregistry/service/src/main/resources/application.properties
deleted file mode 100644
index a17523a..0000000
--- a/camel-example-spring-cloud-serviceregistry/service/src/main/resources/application.properties
+++ /dev/null
@@ -1,39 +0,0 @@
-## ---------------------------------------------------------------------------
-## Licensed to the Apache Software Foundation (ASF) under one or more
-## contributor license agreements. See the NOTICE file distributed with
-## this work for additional information regarding copyright ownership.
-## The ASF licenses this file to You under the Apache License, Version 2.0
-## (the "License"); you may not use this file except in compliance with
-## the License. You may obtain a copy of the License at
-##
-## http://www.apache.org/licenses/LICENSE-2.0
-##
-## Unless required by applicable law or agreed to in writing, software
-## distributed under the License is distributed on an "AS IS" BASIS,
-## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-## See the License for the specific language governing permissions and
-## limitations under the License.
-## ---------------------------------------------------------------------------
-
-# Logging
-logging.level.org.apache.camel.spring.cloud = DEBUG
-
-# Spring Boot
-management.endpoints.enabled-by-default = false
-management.endpoint.health.enabled = true
-
-spring.application.name = ${random.uuid}
-
-# Spring cloud
-spring.cloud.consul.enabled = true
-spring.cloud.consul.config.enabled = false
-spring.cloud.consul.discovery.enabled = true
-spring.cloud.service-registry.auto-registration.enabled = false
-spring.main.allow-bean-definition-overriding = true
-
-# Camel
-camel.springboot.main-run-controller = true
-camel.springboot.jmx-enabled = false
-
-# Camel Cloud
-camel.cloud.service-registry.service-host = localhost
diff --git a/pom.xml b/pom.xml
index f9c6a90..96f6b2a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,8 +78,6 @@
<module>camel-example-spring-boot-xml</module>
<module>camel-example-spring-boot-zipkin</module>
<module>camel-example-spring-boot-strimzi</module>
- <module>camel-example-spring-cloud-servicecall</module>
- <module>camel-example-spring-cloud-serviceregistry</module>
<module>camel-example-spring-boot-splitter-eip</module>
<module>camel-example-spring-boot-widget-gadget</module>
<module>camel-example-spring-boot-unit-testing</module>