Author: davsclaus
Date: Mon Jul 11 08:56:02 2011
New Revision: 1145072
URL: http://svn.apache.org/viewvc?rev=1145072&view=rev
Log:
CAMEL-4206: The scala maven archetype upgraded to Scala 2.9
Modified:
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/ReadMe.txt
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
Modified:
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/ReadMe.txt
URL:
http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/ReadMe.txt?rev=1145072&r1=1145071&r2=1145072&view=diff
==============================================================================
---
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/ReadMe.txt
(original)
+++
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/ReadMe.txt
Mon Jul 11 08:56:02 2011
@@ -1,12 +1,11 @@
Camel Router with Scala DSL Project
-===================================
+=====================
To compile you run:
mvn install
-To run this router either embed the jar inside Spring
-or to run the route from within maven try
+To run this route:
mvn camel:run
Modified:
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
URL:
http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala?rev=1145072&r1=1145071&r2=1145072&view=diff
==============================================================================
---
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
(original)
+++
camel/trunk/tooling/archetypes/camel-archetype-scala/src/main/resources/archetype-resources/src/main/scala/MyRouteBuilder.scala
Mon Jul 11 08:56:02 2011
@@ -24,15 +24,12 @@ import org.apache.camel.scala.dsl.builde
*/
class MyRouteBuilder extends RouteBuilder {
- //an example for the simple DSL syntax...
- "timer://foo?fixedRate=true&delay=0&period=10s" setbody("simple test") to
"log:simple"
-
- // an example of a Processor method
+ // an example of a Processor method
val myProcessorMethod = (exchange: Exchange) => {
exchange.getIn.setBody("block test")
}
- // ...and another one using Scala blocks
+ // a route using Scala blocks
"timer://foo?fixedRate=true&delay=5s&period=10s" ==> {
process(myProcessorMethod)
to("log:block")