Versions Compared

Key

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

...

  • there is no configure() method to override
  • a route starts directly with a URI instead of from(uri)
  • is just an alias for to

Creating a new Camel Scala project

Camel 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)

Code Block

mvn archetype:generate

This runs Maven in interactive mode, and then type camel and pres enter. This filters the list to only Camel related.
And from the list pick the number for the camel-archetype-scala. And then fill in details from there, such as the Camel version etc.

The project created has a readme file with more instructions, and is read to compile and run from mvn as well using

Code Block

mvn compile