xml dsl example
diff --git a/xml/pom.xml b/xml/pom.xml
index a1c4888..91f828a 100644
--- a/xml/pom.xml
+++ b/xml/pom.xml
@@ -53,7 +53,7 @@
<!-- Camel BOM -->
<dependency>
<groupId>org.apache.camel.springboot</groupId>
- <artifactId>camel-spring-boot-dependencies</artifactId>
+ <artifactId>camel-spring-boot-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
@@ -67,16 +67,6 @@
<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.boot</groupId>
@@ -90,6 +80,10 @@
</dependency>
<dependency>
<groupId>org.apache.camel.springboot</groupId>
+ <artifactId>camel-xml-jaxb-dsl-starter</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-stream-starter</artifactId>
</dependency>
diff --git a/xml/src/main/java/sample/camel/SampleCamelApplication.java b/xml/src/main/java/sample/camel/SampleCamelApplication.java
index 306ca12..a51e48a 100644
--- a/xml/src/main/java/sample/camel/SampleCamelApplication.java
+++ b/xml/src/main/java/sample/camel/SampleCamelApplication.java
@@ -18,15 +18,12 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.context.annotation.ImportResource;
//CHECKSTYLE:OFF
/**
* A sample Spring Boot application that starts the Camel routes.
*/
@SpringBootApplication
-// load the spring xml file from classpath
-@ImportResource("classpath:my-camel.xml")
public class SampleCamelApplication {
/**
diff --git a/xml/src/main/resources/my-camel.xml b/xml/src/main/resources/camel/my-route.xml
similarity index 70%
rename from xml/src/main/resources/my-camel.xml
rename to xml/src/main/resources/camel/my-route.xml
index 3fc6e0f..300d8ae 100644
--- a/xml/src/main/resources/my-camel.xml
+++ b/xml/src/main/resources/camel/my-route.xml
@@ -17,13 +17,7 @@
limitations under the License.
-->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-
- <camelContext id="SampleCamel" xmlns="http://camel.apache.org/schema/spring">
+<routes xmlns="http://camel.apache.org/schema/spring">
<route id="hello">
<from uri="timer:hello?period={{timer.period}}"/>
<transform>
@@ -35,6 +29,4 @@
</filter>
<to uri="stream:out"/>
</route>
- </camelContext>
-
-</beans>
+</routes>