treefrog
treefrog

Reputation: 1057

Is it possible to routes from spring xml and java dsl in camel?

The main routes are in spring, but sometimes java dsl is easier to prototype and run POC.

Is there a way to mix both or add java dsl route to the context from spring xml ?

Upvotes: 1

Views: 1267

Answers (2)

Ashish Agarwal
Ashish Agarwal

Reputation: 189

Yes . you can always do that . You can always use both ways of defining camel routes and mix them according to your need. See the link below for more information :

http://camel.apache.org/routes.html

Upvotes: 0

Alexey Yakunin
Alexey Yakunin

Reputation: 1771

Yes, this is possible. Routes are discovered automatically by the rule set. More information can be found here: http://camel.apache.org/spring.html

You can watch the following topics:

  • Using Java Code
  • Using package
  • Using packageScan
  • Using contextScan

Upvotes: 2

Related Questions