I am using version 2.16.1. The example is something like this: 

 <bean ref="invoiceService" method="addNote(${body}, ${header.note}"/>

and the the java bean method is: 

public void addNote(String invoice, String note){
...}

In this case the binding expression assigns the result of Invoice.toString
method to the first argument and null to the second even if there is a
header with name "note" that does contain a non null value.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Camel-bean-parameter-binding-issue-with-Spring-DSL-tp5772200p5781114.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to