To build and run the sample project do the following:
In a command window, change to the
directory.ProjectRoot/simple-router
Enter the following command to build the project:
mvn installMaven builds the project and creates a target directory for the
build artifacts:
ProjectRoot/simple-router/targetProjectRoot/simple-router/target/simple-router-1.0-SNAPSHOT.jar![]()
ProjectRoot/simple-router/target/classesProjectRoot/simple-router/target/classes/log4j.properties![]()
ProjectRoot/simple-router/target/classes/META-INFProjectRoot/simple-router/target/classes/META-INF/springProjectRoot/simple-router/target/classes/META-INF/spring/camel-context.xmlProjectRoot/simple-router/target/classes/tutorialProjectRoot/simple-router/target/classes/tutorial/MyRouteBuilder.class![]()
ProjectRoot/simple-router/target/maven-archiverProjectRoot/simple-router/target/maven-archiver/pom.properties
Some of the project artifacts are described below:
Enter the following command to run the project:
mvn camel:runWhen Apache Camel starts, it prints lines like the following to the console:
23-Feb-2009 16:51:04 org.apache.camel.spring.Main doStart
INFO: Apache Camel 2.4.0-fuse-00-00-fuse starting
23-Feb-2009 16:51:04 org.springframework.context.support.AbstractApplicationContext prepareRefresh
...The sample application runs until you stop it. It routes messages from
ProjectRoot/simple-router/src/data to
either
ProjectRoot/simple-router/target/messages/uk
or
ProjectRoot/simple-router/target/messages/others.
You can stop the application by pressing Ctrl+C.