Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Apache Camel

You're reading from  Mastering Apache Camel

Product type Book
Published in Jun 2015
Publisher Packt
ISBN-13 9781782173151
Pages 238 pages
Edition 1st Edition
Languages
Concepts
Authors (3):
Bilgin Ismet Ibryam Bilgin Ismet Ibryam
Profile icon Bilgin Ismet Ibryam
Jean Baptiste Onofre Jean Baptiste Onofre
Profile icon Jean Baptiste Onofre
Jean-Baptiste Onofré Jean-Baptiste Onofré
Profile icon Jean-Baptiste Onofré
View More author details

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 the DSL to create and instantiate all the objects.

The DSL is used to wire processors and endpoints together to define and form routes.

Using a DSL, you mostly define the following:

  • The Camel context containing the routing rule base and resources

  • The...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}