Monday, March 10, 2014

Apache Camel tutorial : Quick start from scratch (Console App using Xml as the routes definition , without Spring)

Following the last post Apache Camel tutorial : Quick start from scratch (Console App , without Spring), if you don’t want to hard code the routes, we can simply use xml as keep the routes definition.

to do that , let’s change the code a little bit.

image

then in the route.xml, add the route definition there,
image

when run, you see the similar results,

image

for this code, check the branch demoxml

https://github.com/ryandh/apacheCamelTutorial/tree/demoxml

No comments:

 
Locations of visitors to this page