Domain Specific Languages (DSL)

Using the Camel API directly would need you to write a lot of plumbing code. You will need to create all the objects and load a lot of objects into different ones.

Therefore, the direct usage of API would be very time consuming. Moreover, as a flexible and easy-to-use integration framework, Camel doesn't have to force the use of one language (Java) to write the routing logic. Users may not be familiar with Java and might prefer to write their routing logic using another language.

That's why Camel provides a set of languages to directly write the routes: the Camel Domain Specific Languages (DSL).

Using a DSL, the user directly writes their routes and describes the Camel context using a DSL. Camel will load and interpret ...

Get Mastering Apache Camel now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.