Scala DSL - Getting StartedPage edited by Claus IbsenChanges (1)
Full ContentJust like the Java DSL, the Scala DSL has a RouteBuilder (org.apache.camel.scala.builder.RouteBuilder) class that you have to extend to implement your own routes. This example shows you two very simple routes. class MyRouteBuilder extends RouteBuilder { "direct:a" --> "mock:a" "direct:b" to "mock:b" }
Creating a new Camel Scala projectCamel offers Maven archetypes which allows you to quickly setup a new project. To do this you can use Maven an execute the following from the command line (using Maven 3.0.3 or better) mvn archetype:generate This runs Maven in interactive mode, and then type camel and pres enter. This filters the list to only Camel related. The project created has a readme file with more instructions, and is read to compile and run from mvn as well using mvn compile
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Camel > Scala DSL - Getting Started confluence