GMon
GMon

Reputation: 678

Camel convert Java DSL to Spring DSL

I'm new to Camel and I'm still learning about it and from my understanding you can do the same things in Spring DSL as Java DSL. What I'm wondering is how do you convert one to the other? Often I see examples of things in Java but want to

Upvotes: 0

Views: 2324

Answers (1)

Archer
Archer

Reputation: 5147

Basically the difference between Java DSL and Spring XML is that first is written completely in Java language through RouteBuilder#configure() method and second is written in XML. You can use ANY to achieve things you need. In some cases Java DSL is more clean, while in other cases XML configuration file could be preferable.

Here is the example of Java DSL, while here is Spring XML.

Upvotes: 1

Related Questions