You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/01/31 10:36:49 UTC

[1/5] camel git commit: CAMEL-10770: Upgrade to Spring Boot 1.5.1

Repository: camel
Updated Branches:
  refs/heads/master ce80e9bba -> e04dd7f21


CAMEL-10770: Upgrade to Spring Boot 1.5.1


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

Branch: refs/heads/master
Commit: e04dd7f2142e3eb9daed51ae7e42617f5992d3f2
Parents: b4cdbf1
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jan 31 11:32:05 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jan 31 11:36:39 2017 +0100

----------------------------------------------------------------------
 .../camel-example-spring-boot-starter/pom.xml   | 26 +++++++++++++++++---
 .../main/resources/archetype-resources/pom.xml  | 15 ++++++++++-
 .../src/main/resources/application.yml          |  3 ++-
 3 files changed, 38 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e04dd7f2/examples/camel-example-spring-boot-starter/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-starter/pom.xml b/examples/camel-example-spring-boot-starter/pom.xml
index c886edd..0d73f7c 100644
--- a/examples/camel-example-spring-boot-starter/pom.xml
+++ b/examples/camel-example-spring-boot-starter/pom.xml
@@ -31,12 +31,14 @@
   <description>An example showing how to work with Camel and Spring Boot using Spring Boot Starter</description>
 
   <properties>
+    <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>
 
-  <!-- import Spring-Boot and Camel BOM -->
   <dependencyManagement>
     <dependencies>
+      <!-- Spring Boot BOM -->
       <dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-dependencies</artifactId>
@@ -44,10 +46,11 @@
         <type>pom</type>
         <scope>import</scope>
       </dependency>
+      <!-- Camel BOM -->
       <dependency>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-spring-boot-dependencies</artifactId>
-        <version>${project.version}</version>
+        <version>${camel-version}</version>
         <type>pom</type>
         <scope>import</scope>
       </dependency>
@@ -56,13 +59,21 @@
 
   <dependencies>
 
-    <!-- spring-web -->
+    <!-- Spring Boot -->
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-undertow</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-actuator</artifactId>
+    </dependency>
 
-    <!-- camel -->
+    <!-- Camel -->
     <dependency>
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-spring-boot-starter</artifactId>
@@ -92,6 +103,13 @@
         <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>

http://git-wip-us.apache.org/repos/asf/camel/blob/e04dd7f2/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml b/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml
index 872e9b8..bd9c06c 100755
--- a/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml
+++ b/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/pom.xml
@@ -55,26 +55,39 @@
   </dependencyManagement>
 
   <dependencies>
+
+    <!-- Camel -->
     <dependency>
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-spring-boot-starter</artifactId>
       <version>${camel-version}</version>
     </dependency>
+
+    <!-- Spring Boot -->
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
     </dependency>
     <dependency>
       <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-undertow</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-actuator</artifactId>
     </dependency>
 
-    <!-- Testing -->
+    <!-- testing -->
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-test-spring</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
 
   <build>

http://git-wip-us.apache.org/repos/asf/camel/blob/e04dd7f2/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/main/resources/application.yml
----------------------------------------------------------------------
diff --git a/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/main/resources/application.yml b/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/main/resources/application.yml
index 8334198..9d727e8 100644
--- a/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/main/resources/application.yml
+++ b/tooling/archetypes/camel-archetype-spring-boot/src/main/resources/archetype-resources/src/main/resources/application.yml
@@ -15,4 +15,5 @@
 ## limitations under the License.
 ## ------------------------------------------------------------------------
 
-spring.main.sources: ${package}.MySpringBootRouter
\ No newline at end of file
+# the name of Camel
+camel.springboot.name = MyCamel
\ No newline at end of file


[2/5] camel git commit: CAMEL-10770: Upgrade to Spring Boot 1.5.1

Posted by da...@apache.org.
CAMEL-10770: Upgrade to Spring Boot 1.5.1


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

Branch: refs/heads/master
Commit: 837fa76adcfe9774688cce814d2382a2f366bd62
Parents: 4e719f2
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jan 31 11:26:13 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jan 31 11:36:39 2017 +0100

----------------------------------------------------------------------
 .../client/src/main/java/sample/camel/ClientApplication.java | 2 +-
 examples/camel-example-spring-boot-starter/pom.xml           | 2 +-
 .../test/java/sample/camel/SampleCamelApplicationTest.java   | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/837fa76a/examples/camel-example-hystrix/client/src/main/java/sample/camel/ClientApplication.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-hystrix/client/src/main/java/sample/camel/ClientApplication.java b/examples/camel-example-hystrix/client/src/main/java/sample/camel/ClientApplication.java
index 574bb0b..f55b5e0 100644
--- a/examples/camel-example-hystrix/client/src/main/java/sample/camel/ClientApplication.java
+++ b/examples/camel-example-hystrix/client/src/main/java/sample/camel/ClientApplication.java
@@ -19,7 +19,7 @@ package sample.camel;
 import org.apache.camel.component.hystrix.metrics.servlet.HystrixEventStreamServlet;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.context.embedded.ServletRegistrationBean;
+import org.springframework.boot.web.servlet.ServletRegistrationBean;
 import org.springframework.context.annotation.Bean;
 
 /**

http://git-wip-us.apache.org/repos/asf/camel/blob/837fa76a/examples/camel-example-spring-boot-starter/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-starter/pom.xml b/examples/camel-example-spring-boot-starter/pom.xml
index 6373f62..c886edd 100644
--- a/examples/camel-example-spring-boot-starter/pom.xml
+++ b/examples/camel-example-spring-boot-starter/pom.xml
@@ -80,7 +80,7 @@
     </dependency>
     <dependency>
       <groupId>org.apache.camel</groupId>
-      <artifactId>camel-test</artifactId>
+      <artifactId>camel-test-spring</artifactId>
       <scope>test</scope>
     </dependency>
 

http://git-wip-us.apache.org/repos/asf/camel/blob/837fa76a/examples/camel-example-spring-boot-starter/src/test/java/sample/camel/SampleCamelApplicationTest.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-starter/src/test/java/sample/camel/SampleCamelApplicationTest.java b/examples/camel-example-spring-boot-starter/src/test/java/sample/camel/SampleCamelApplicationTest.java
index e5a097c..7d53276 100644
--- a/examples/camel-example-spring-boot-starter/src/test/java/sample/camel/SampleCamelApplicationTest.java
+++ b/examples/camel-example-spring-boot-starter/src/test/java/sample/camel/SampleCamelApplicationTest.java
@@ -20,16 +20,16 @@ import java.util.concurrent.TimeUnit;
 
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.NotifyBuilder;
+import org.apache.camel.test.spring.CamelSpringBootRunner;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.SpringApplicationConfiguration;
-import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.boot.test.context.SpringBootTest;
 
 import static org.junit.Assert.assertTrue;
 
-@RunWith(SpringJUnit4ClassRunner.class)
-@SpringApplicationConfiguration(SampleCamelApplication.class)
+@RunWith(CamelSpringBootRunner.class)
+@SpringBootTest(classes = SampleCamelApplication.class)
 public class SampleCamelApplicationTest {
 
     @Autowired


[4/5] camel git commit: Regen code

Posted by da...@apache.org.
Regen code


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

Branch: refs/heads/master
Commit: b4cdbf1385e70ba2c66b9380c8628f2f2cd2caf7
Parents: 837fa76
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jan 31 11:27:53 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jan 31 11:36:39 2017 +0100

----------------------------------------------------------------------
 components/readme.adoc         | 15 ---------------
 docs/user-manual/en/SUMMARY.md |  5 -----
 2 files changed, 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b4cdbf13/components/readme.adoc
----------------------------------------------------------------------
diff --git a/components/readme.adoc b/components/readme.adoc
index 7641b5c..fccd05c 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -204,27 +204,12 @@ Components
 | link:camel-google-drive/src/main/docs/google-drive-component.adoc[Google Drive] (camel-google-drive) +
 `google-drive:apiName/methodName` | The google-drive component provides access to Google Drive file storage service.
 
-| link:camel-gae/src/main/docs/gauth-component.adoc[Google GAuth] (camel-gae) +
-`gauth:name` | The gauth component is used by web applications to implement a Google-specific OAuth consumer.
-
-| link:camel-gae/src/main/docs/ghttp-component.adoc[Google HTTP] (camel-gae) +
-`ghttp:httpUri` | The ghttp component provides HTTP connectivity to the GAE.
-
-| link:camel-gae/src/main/docs/glogin-component.adoc[Google Login] (camel-gae) +
-`glogin:hostName` | The glogin component is used by Camel applications outside Google App Engine (GAE) for programmatic login to GAE applications.
-
-| link:camel-gae/src/main/docs/gmail-component.adoc[Google mail] (camel-gae) +
-`gmail:sender` | The gmail component is used for sending emails to GAE.
-
 | link:camel-google-mail/src/main/docs/google-mail-component.adoc[Google Mail] (camel-google-mail) +
 `google-mail:apiName/methodName` | The google-mail component provides access to Google Mail.
 
 | link:camel-google-pubsub/src/main/docs/google-pubsub-component.adoc[Google Pubsub] (camel-google-pubsub) +
 `google-pubsub:projectId:destinationName` | Messaging client for Google Cloud Platform PubSub Service: https://cloud.google.com/pubsub/
 
-| link:camel-gae/src/main/docs/gtask-component.adoc[Google Task] (camel-gae) +
-`gtask:queueName` | The gtask component is used for sending messages to GAE task queue service.
-
 | link:camel-gora/src/main/docs/gora-component.adoc[Gora] (camel-gora) +
 `gora:name` | The gora component allows you to work with NoSQL databases using the Apache Gora framework.
 

http://git-wip-us.apache.org/repos/asf/camel/blob/b4cdbf13/docs/user-manual/en/SUMMARY.md
----------------------------------------------------------------------
diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md
index 05129ca..d93d575 100644
--- a/docs/user-manual/en/SUMMARY.md
+++ b/docs/user-manual/en/SUMMARY.md
@@ -190,13 +190,8 @@
 	* [GitHub](github-component.adoc)
 	* [Google Calendar](google-calendar-component.adoc)
 	* [Google Drive](google-drive-component.adoc)
-	* [Google GAuth](gauth-component.adoc)
-	* [Google HTTP](ghttp-component.adoc)
-	* [Google Login](glogin-component.adoc)
-	* [Google mail](gmail-component.adoc)
 	* [Google Mail](google-mail-component.adoc)
 	* [Google Pubsub](google-pubsub-component.adoc)
-	* [Google Task](gtask-component.adoc)
 	* [Gora](gora-component.adoc)
 	* [Grape](grape-component.adoc)
 	* [Guava EventBus](guava-eventbus-component.adoc)


[3/5] camel git commit: CAMEL-10770: Upgrade to Spring Boot 1.5.1

Posted by da...@apache.org.
CAMEL-10770: Upgrade to Spring Boot 1.5.1


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

Branch: refs/heads/master
Commit: 6828e74c81927d7db77be89f39804b1326802dcc
Parents: ce80e9b
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jan 31 10:11:01 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jan 31 11:36:39 2017 +0100

----------------------------------------------------------------------
 parent/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6828e74c/parent/pom.xml
----------------------------------------------------------------------
diff --git a/parent/pom.xml b/parent/pom.xml
index 8387db1..7f3dd1b 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -558,7 +558,7 @@
     <splunk-version>1.5.0.0_1</splunk-version>
     <spring-batch-version>3.0.7.RELEASE</spring-batch-version>
     <spring-batch-bundle-version>3.0.7.RELEASE_1</spring-batch-bundle-version>
-    <spring-boot-version>1.4.4.RELEASE</spring-boot-version>
+    <spring-boot-version>1.5.1.RELEASE</spring-boot-version>
     <spring-cloud-commons-version>1.1.6.RELEASE</spring-cloud-commons-version>
     <spring-cloud-netflix-version>1.2.4.RELEASE</spring-cloud-netflix-version>
     <spring-castor-bundle-version>1.2.0</spring-castor-bundle-version>


[5/5] camel git commit: CAMEL-10770: Upgrade to Spring Boot 1.5.1

Posted by da...@apache.org.
CAMEL-10770: Upgrade to Spring Boot 1.5.1


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

Branch: refs/heads/master
Commit: 4e719f2fd066ee28119f95dc34cf8b049b761567
Parents: 6828e74
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jan 31 10:40:55 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Tue Jan 31 11:36:39 2017 +0100

----------------------------------------------------------------------
 .../src/main/docs/spring-boot.adoc              | 85 --------------------
 .../apache/camel/spring/boot/FatJarRouter.java  | 38 ---------
 .../camel/spring/boot/FatWarInitializer.java    | 32 --------
 .../camel/spring/boot/RoutesCollector.java      |  4 +-
 .../spring/boot/SpringTypeConverterTest.java    |  9 +--
 .../JUnitFatJarRouterTest.java                  | 61 --------------
 .../StandaloneFatJarRouterTest.java             | 78 ------------------
 .../fatjarroutertests/TestFatJarRouter.java     | 39 ---------
 8 files changed, 2 insertions(+), 344 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/main/docs/spring-boot.adoc
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/docs/spring-boot.adoc b/components/camel-spring-boot/src/main/docs/spring-boot.adoc
index 094214b..9f148a6 100644
--- a/components/camel-spring-boot/src/main/docs/spring-boot.adoc
+++ b/components/camel-spring-boot/src/main/docs/spring-boot.adoc
@@ -347,91 +347,6 @@ features (like `TypeConverter` instance or Spring bridge) set the
 camel.springboot.typeConversion = false
 ---------------------------------------
 
-[[SpringBoot-Fatjarsandfatwars]]
-Fat jars and fat wars
-^^^^^^^^^^^^^^^^^^^^^
-
-The easiest way to create a Camel-aware Spring Boot fat jar/war is to
-extend the `org.apache.camel.spring.boot.FatJarRouter` class...
-
-�
-
-[source,java]
---------------------------------------------------
-package com.example;
-�
-... // imports
-�
-@SpringBootApplication
-public class MyFatJarRouter extends FatJarRouter {
-
-    @Override
-    public void configure() throws Exception {
-        from("netty-http:http://0.0.0.0:18080").
-            setBody().simple("ref:helloWorld");
-    }
-
-    @Bean
-    String helloWorld() {
-        return "helloWorld";
-    }
-
-}
---------------------------------------------------
-
-�
-
-...and add the following property to your `application.properties` file:
-
-�
-
-[source,xml]
-------------------------------------------------
-spring.main.sources = com.example.MyFatJarRouter
-------------------------------------------------
-
-It is also recommended to define your main class explicitly in the
-Spring Boot Maven plugin configuration:�
-
-[source,xml]
-----------------------------------------------------------------------
- <plugin>
-    <groupId>org.springframework.boot</groupId>
-    <artifactId>spring-boot-maven-plugin</artifactId>
-    <version>${spring-boot.version}</version>
-    <configuration>
-      <mainClass>org.apache.camel.spring.boot.FatJarRouter</mainClass>
-    </configuration>
-    <executions>
-      <execution>
-        <goals>
-          <goal>repackage</goal>
-        </goals>
-      </execution>
-    </executions>
-</plugin>
-----------------------------------------------------------------------
-
-In order to turn your fat jar into fat war, add the following class
-extending �`org.apache.camel.spring.boot.FatWarInitializer`�to your
-project:
-
-[source,java]
----------------------------------------------------------------------
-package com.example;
-�
-... // imports
-
-public class MyFatJarRouterWarInitializer extends FatWarInitializer {
-
-
-  @Override
-  protected Class<? extends FatJarRouter> routerClass() {
-    return MyFatJarRouter.class;
-  }
-
-}
----------------------------------------------------------------------
 
 [[SpringBoot-Blockingmainthread]]
 Blocking main thread

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatJarRouter.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatJarRouter.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatJarRouter.java
deleted file mode 100644
index f0b9101..0000000
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatJarRouter.java
+++ /dev/null
@@ -1,38 +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.spring.boot;
-
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.boot.SpringApplication;
-import org.springframework.context.ApplicationContext;
-
-@Deprecated
-public class FatJarRouter extends RouteBuilder {
-
-    public static void main(String... args) {
-        ApplicationContext applicationContext = new SpringApplication(FatJarRouter.class).run(args);
-        CamelSpringBootApplicationController applicationController =
-                applicationContext.getBean(CamelSpringBootApplicationController.class);
-        applicationController.run();
-    }
-
-    @Override
-    public void configure() throws Exception {
-
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatWarInitializer.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatWarInitializer.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatWarInitializer.java
deleted file mode 100644
index e4c5200..0000000
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/FatWarInitializer.java
+++ /dev/null
@@ -1,32 +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.spring.boot;
-
-import org.springframework.boot.builder.SpringApplicationBuilder;
-import org.springframework.boot.context.web.SpringBootServletInitializer;
-
-@Deprecated
-public abstract class FatWarInitializer extends SpringBootServletInitializer {
-
-    @Override
-    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
-        return application.sources(routerClass());
-    }
-
-    protected abstract Class<? extends FatJarRouter> routerClass();
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java
index d5a90d0..e0b8a88 100644
--- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java
+++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java
@@ -78,9 +78,7 @@ public class RoutesCollector implements ApplicationListener<ContextRefreshedEven
                 for (RoutesBuilder routesBuilder : applicationContext.getBeansOfType(RoutesBuilder.class, configurationProperties.isIncludeNonSingletons(), true).values()) {
                     // filter out abstract classes
                     boolean abs = Modifier.isAbstract(routesBuilder.getClass().getModifiers());
-                    // filter out FatJarRouter which can be in the spring app context
-                    boolean farJarRouter = FatJarRouter.class.equals(routesBuilder.getClass());
-                    if (!abs && !farJarRouter) {
+                    if (!abs) {
                         try {
                             LOG.debug("Injecting following route into the CamelContext: {}", routesBuilder);
                             camelContext.addRoutes(routesBuilder);

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SpringTypeConverterTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SpringTypeConverterTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SpringTypeConverterTest.java
index 4814374..ac76c8a 100644
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SpringTypeConverterTest.java
+++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/SpringTypeConverterTest.java
@@ -26,7 +26,6 @@ import org.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
-import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.annotation.Bean;
@@ -39,6 +38,7 @@ import org.springframework.core.convert.support.DefaultConversionService;
 import org.springframework.test.context.junit4.SpringRunner;
 
 @RunWith(SpringRunner.class)
+@EnableAutoConfiguration
 @SpringBootTest(classes = SpringTypeConverterTest.SpringTypeConversionConfiguration.class)
 public class SpringTypeConverterTest {
     @Autowired
@@ -106,13 +106,6 @@ public class SpringTypeConverterTest {
     }
 
     @Configuration
-    @EnableAutoConfiguration(
-        exclude = {
-            CamelAutoConfiguration.class, 
-            TypeConversionConfiguration.class, 
-            WebMvcAutoConfiguration.class
-        }
-    )
     public static class SpringTypeConversionConfiguration {
         @Bean
         ConversionService camelSpringConversionService(ApplicationContext applicationContext) {

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/JUnitFatJarRouterTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/JUnitFatJarRouterTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/JUnitFatJarRouterTest.java
deleted file mode 100644
index 33fb5ba..0000000
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/JUnitFatJarRouterTest.java
+++ /dev/null
@@ -1,61 +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.spring.boot.fatjarroutertests;
-
-import java.io.IOException;
-import java.lang.management.ManagementFactory;
-import java.net.URL;
-import java.util.Set;
-
-import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-import org.apache.commons.io.IOUtils;
-import org.junit.Assert;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.test.context.junit4.SpringRunner;
-import org.springframework.util.SocketUtils;
-
-@RunWith(SpringRunner.class)
-@SpringBootTest(classes = TestFatJarRouter.class, properties = "spring.main.sources=org.apache.camel.spring.boot.fatjarroutertests")
-public class JUnitFatJarRouterTest extends Assert {
-
-    static int port = SocketUtils.findAvailableTcpPort(20000);
-
-    @BeforeClass
-    public static void beforeClass() {
-        System.setProperty("http.port", port + "");
-    }
-
-    @Test
-    public void shouldStartCamelRoute() throws InterruptedException, IOException, MalformedObjectNameException {
-        String response = IOUtils.toString(new URL("http://localhost:" + port));
-
-        assertEquals("stringBean", response);
-
-        // There should be 3 routes running..
-        MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
-        Set<ObjectName> objectNames = mbs.queryNames(new ObjectName("org.apache.camel:type=routes,*"), null);
-        assertEquals(3, objectNames.size());
-    }
-
-}
-

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/StandaloneFatJarRouterTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/StandaloneFatJarRouterTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/StandaloneFatJarRouterTest.java
deleted file mode 100644
index 4e6dd70..0000000
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/StandaloneFatJarRouterTest.java
+++ /dev/null
@@ -1,78 +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.spring.boot.fatjarroutertests;
-
-import java.io.IOException;
-import java.lang.management.ManagementFactory;
-import java.net.ConnectException;
-import java.net.URL;
-import java.util.Set;
-import java.util.concurrent.Callable;
-
-import static java.util.concurrent.TimeUnit.MINUTES;
-
-import javax.management.MBeanServer;
-import javax.management.MalformedObjectNameException;
-import javax.management.ObjectName;
-
-import org.apache.camel.spring.boot.FatJarRouter;
-import org.apache.commons.io.IOUtils;
-import org.junit.Assert;
-import org.junit.Test;
-import org.springframework.util.SocketUtils;
-
-import static com.jayway.awaitility.Awaitility.await;
-
-public class StandaloneFatJarRouterTest extends Assert {
-
-    @Test
-    public void shouldStartCamelRoute() throws InterruptedException, IOException, MalformedObjectNameException {
-        // Given
-        final int port = SocketUtils.findAvailableTcpPort(20000);
-        final URL httpEndpoint = new URL("http://localhost:" + port);
-        new Thread() {
-            @Override
-            public void run() {
-                FatJarRouter.main("--spring.main.sources=org.apache.camel.spring.boot.fatjarroutertests.TestFatJarRouter", "--http.port=" + port);
-            }
-        }.start();
-        await().atMost(1, MINUTES).until(new Callable<Boolean>() {
-            @Override
-            public Boolean call() throws Exception {
-                try {
-                    httpEndpoint.openStream();
-                } catch (ConnectException ex) {
-                    return false;
-                }
-                return true;
-            }
-        });
-
-        // When
-        String response = IOUtils.toString(httpEndpoint);
-
-        // Then
-        assertEquals("stringBean", response);
-
-        // There should be 3 routes running..
-        MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
-        Set<ObjectName> objectNames = mbs.queryNames(new ObjectName("org.apache.camel:type=routes,*"), null);
-        assertEquals(3, objectNames.size());
-    }
-
-}
-

http://git-wip-us.apache.org/repos/asf/camel/blob/4e719f2f/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/TestFatJarRouter.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/TestFatJarRouter.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/TestFatJarRouter.java
deleted file mode 100644
index 1609f49..0000000
--- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/fatjarroutertests/TestFatJarRouter.java
+++ /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.
- */
-package org.apache.camel.spring.boot.fatjarroutertests;
-
-import org.apache.camel.spring.boot.FatJarRouter;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.ImportResource;
-
-@SpringBootApplication
-@ImportResource({"classpath:test-camel-context.xml"})
-public class TestFatJarRouter extends FatJarRouter {
-
-    @Override
-    public void configure() throws Exception {
-        from("netty4-http:http://0.0.0.0:{{http.port}}").
-                setBody().simple("ref:stringBean");
-    }
-
-    @Bean
-    String stringBean() {
-        return "stringBean";
-    }
-
-}