|
Page Edited :
CAMEL :
Creating a new Spring based Camel Route
Creating a new Spring based Camel Route has been edited by Jonathan Anstey (Dec 18, 2008). Content:Creating a new Spring based Camel RouteIf you want to create your own version of the Spring Example you can use the maven archetype. mvn archetype:generate \ -DarchetypeGroupId=org.apache.camel.archetypes \ -DarchetypeArtifactId=camel-archetype-spring \ -DarchetypeVersion=1.5.0 \ -DgroupId=myGroupId \ -DartifactId=myArtifactId
This will create a maven project which can be run immediately via the Camel Maven Plugin as follows cd myArtifactId mvn camel:run The configuration file is in src/main/resources/META-INF/spring/camel-context.xml. The routing rules lives at src/main/java/myGroupId/MyRouteBuilder.java |
Unsubscribe or edit your notifications preferences
