You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Gardella juan <ga...@gmail.com> on 2013/02/08 20:49:17 UTC
Bug in bean-binding? Don't remove last quote
Hi all,
In the page http://camel.apache.org/bean-binding.html said:
"In the example above, we invoke the echo method with two parameters. The
first has the content 'World' (without quotes), and the 2nd has the value of
5."
But I put in a route:
.to("bean:handler?method=log('I1000')");
And in the bean has:
public void log(String code, Exchange e) {
..
// here receive I1000'
}
It seems it is a bug. Do I have to open a new bug about this?
Thanks,
Juan
--
View this message in context: http://camel.465427.n5.nabble.com/Bug-in-bean-binding-Don-t-remove-last-quote-tp5727250.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Bug in bean-binding? Don't remove last quote
Posted by Gardella juan <ga...@gmail.com>.
Yes it works. Thanks for your quick response Claus! Was my own error, Camel
works as expected.
Juan
--
View this message in context: http://camel.465427.n5.nabble.com/Bug-in-bean-binding-Don-t-remove-last-quote-tp5727250p5727598.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Bug in bean-binding? Don't remove last quote
Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Feb 9, 2013 at 11:26 AM, Claus Ibsen <cl...@gmail.com> wrote:
> On Fri, Feb 8, 2013 at 8:49 PM, Gardella juan
> <ga...@gmail.com> wrote:
>> Hi all,
>>
>> In the page http://camel.apache.org/bean-binding.html said:
>>
>> "In the example above, we invoke the echo method with two parameters. The
>> first has the content 'World' (without quotes), and the 2nd has the value of
>> 5."
>>
>> But I put in a route:
>>
>> .to("bean:handler?method=log('I1000')");
>>
>> And in the bean has:
>>
>> public void log(String code, Exchange e) {
>> ..
>> // here receive I1000'
>> }
>>
>> It seems it is a bug. Do I have to open a new bug about this?
>>
>
I created an test to reproduce the issue
http://svn.apache.org/r1445093
It works in Camel 2.11.
What Camel version do you use?
> And yes even with the quotes it smells like a bug. Feel free to log a JIRA.
>
>
>> Thanks,
>> Juan
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Bug-in-bean-binding-Don-t-remove-last-quote-tp5727250.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cibsen@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Bug in bean-binding? Don't remove last quote
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Feb 8, 2013 at 8:49 PM, Gardella juan
<ga...@gmail.com> wrote:
> Hi all,
>
> In the page http://camel.apache.org/bean-binding.html said:
>
> "In the example above, we invoke the echo method with two parameters. The
> first has the content 'World' (without quotes), and the 2nd has the value of
> 5."
>
> But I put in a route:
>
> .to("bean:handler?method=log('I1000')");
>
> And in the bean has:
>
> public void log(String code, Exchange e) {
> ..
> // here receive I1000'
> }
>
> It seems it is a bug. Do I have to open a new bug about this?
>
And yes even with the quotes it smells like a bug. Feel free to log a JIRA.
> Thanks,
> Juan
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Bug-in-bean-binding-Don-t-remove-last-quote-tp5727250.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Bug in bean-binding? Don't remove last quote
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Feb 8, 2013 at 8:49 PM, Gardella juan
<ga...@gmail.com> wrote:
> Hi all,
>
> In the page http://camel.apache.org/bean-binding.html said:
>
> "In the example above, we invoke the echo method with two parameters. The
> first has the content 'World' (without quotes), and the 2nd has the value of
> 5."
>
> But I put in a route:
>
> .to("bean:handler?method=log('I1000')");
>
> And in the bean has:
>
> public void log(String code, Exchange e) {
> ..
> // here receive I1000'
> }
>
> It seems it is a bug. Do I have to open a new bug about this?
>
Possible. Have you tried as the doc says, without quotes.
.to("bean:handler?method=log(I1000)");
> Thanks,
> Juan
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Bug-in-bean-binding-Don-t-remove-last-quote-tp5727250.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen