Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to create your own version of the Spring Example you can use the maven archetype.

Code Block

mvn archetype:create                   \
  -DarchetypeGroupId=org.apache.camel  \
  -DarchetypeArtifactId=camel-router   \
  -DarchetypeVersion=1.0-SNAPSHOT      \
  -DgroupId=myGroupId                  \
  -DartifactId=myArtifactId   

This will create a maven project which can be run immediately via the Camel Maven Plugin as follows

Code Block
cd myArtifactmyArtifactId
mvn jetty:run

The configuration file is in src/main/resources/META-INF/spring/camel-context.xml. Then the first routing rules lives at src/main/java/myGroupmyGroupId/MyRouteBuilder.java