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 2022/04/12 10:18:15 UTC

[camel-spring-boot-examples] branch main updated: Updated readme

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new b5393ae  Updated readme
b5393ae is described below

commit b5393aeb74569e919043c4cc100153e6ae33fa34
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Apr 12 12:18:06 2022 +0200

    Updated readme
---
 xml-import/readme.adoc | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/xml-import/readme.adoc b/xml-import/readme.adoc
index a25b161..8ea134a 100644
--- a/xml-import/readme.adoc
+++ b/xml-import/readme.adoc
@@ -1,19 +1,17 @@
-== Camel Example Spring Boot
+== Camel Example Spring Boot XML Import
 
-This example shows how to work with a simple Apache Camel application using Spring Boot.
+This example shows how to use Camel XML routes using the
+legacy Spring XML files (`<beans>` with embedded `<camelContext>`).
 
-The example generates messages using timer trigger, writes them to standard output.
+This can be useful when migrating from classic Spring XML files to using Spring Boot,
+and want to keep using Spring XML `<beans>` for dependency injection.
 
 === Camel routes
 
-The Camel route is located in the `SampleCamelRouter` class. In this class the route
-starts from a timer, that triggers every 2nd second and calls a Spring Bean `SampleBean`
-which returns a message, that is routed to a stream endpoint which writes to standard output.
+The Camel route is located in the `src/main/resources/my-camel.xml` file.
 
-=== Using Camel components
-
-Apache Camel provides 200+ components which you can use to integrate and route messages between many systems
-and data formats. To use any of these Camel components, add the component as a dependency to your project.
+Notice how you must use the `@ImportResource("classpath:my-camel.xml")` annotation
+in the Spring Boot main class to let Spring Boot load the legacy Spring XML file.
 
 === How to run