About the Scala DSL
Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It integrates very well with the Java platform. Our Scala DSL implementation is built on top of the existing Java-based DSL, but it adds Scala syntax sugar to make building routes even more convenient.
Documentation
- Scala DSL - Getting Started gives you basic information on how to use the Scala DSL.
- Scala DSL - EIP shows you the Scala DSL syntax for every EIP supported
- Scala DSL - Supported languages explains the usage of traits to add support for other languages (e.g. XPath)
References
- At ApacheCon Europe 2008 there was a Fast Feather talk that introduced some of the basic Scala language concepts that are being used for building the Scala DSL. Here are the presentation slides .
Dependencies
To use the Scala DSL in your camel routes you need to add the a dependency on camel-scala which implements the Scala DSL.
If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-scala</artifactId> <version>2.8.0</version> </dependency>