You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mario Balaban <pa...@gmail.com> on 2016/04/14 10:23:35 UTC
Re: Apache Camel bean parameter binding issue with Spring DSL
Hello, I also have been passing a couple of hours trying to debug a missing
parenthesis from a bean binding expression. It would be nice if the parser
threw an exception in case of missing close parenthesis. Thanks!
--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-bean-parameter-binding-issue-with-Spring-DSL-tp5772200p5781069.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Apache Camel bean parameter binding issue with Spring DSL
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Thanks I logged a ticket
https://issues.apache.org/jira/browse/CAMEL-9870
On Thu, Apr 14, 2016 at 10:00 PM, Mario Balaban <pa...@gmail.com> wrote:
> 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.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: Apache Camel bean parameter binding issue with Spring DSL
Posted by Mario Balaban <pa...@gmail.com>.
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.
Re: Apache Camel bean parameter binding issue with Spring DSL
Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Apr 14, 2016 at 10:23 AM, Mario Balaban <pa...@gmail.com> wrote:
> Hello, I also have been passing a couple of hours trying to debug a missing
> parenthesis from a bean binding expression. It would be nice if the parser
> threw an exception in case of missing close parenthesis. Thanks!
>
What Camel version did you use?
And can you show the example?
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-bean-parameter-binding-issue-with-Spring-DSL-tp5772200p5781069.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2