Friday, June 5, 2015

Camel Technical learnings



Whenever you use a `choice()` in your camel route always use `end()` to end it as opposed to `endChoice()`. Using `endChoice()` drops the exchange from the route.

-------------------------------------

How are bean method is called :
Camel uses a Camel’s method-selection algorithm for selecting a method in the Bean class.
Also uses Bean parameter binding as defined below :
generally this steps are performed:
The BeanProcessor uses the input message to bind its body to the first parameter
of the method of called Bean.

see the different annotation that can be used in defining Bean methods: http://camel.apache.org/parameter-binding-annotations.html

Also see 4.5.1 Binding with multiple parameters in camel in acton.


----------------------------

Configure method of a Routebuilder is called only once at the startup of the camelContext. So any value added to route cant be changed even though  you may have used variable to define them (and variables being dynamically loaded from properties file).




No comments:

Post a Comment