Put short: you can pass method parameters if they are part of the Exchange
(either body or as headers).
But it's still unclear for me where these params should come from, or what you
are trying to do.
You say "user input", but user input should be done before sending the Exchange
and entering t
eader("str1", str1)
> >> > .setHeader("str2", str2)
> >> > .to().bean(myBean, methodName).end();
> >> > }
> >> >
> >> > // @see http://camel.apache.org/bean.html
> >> > // @see http://camel.apache.org/bean-bindi
;str2", str2)
>> > .to().bean(myBean, methodName).end();
>> > }
>> >
>> > // @see http://camel.apache.org/bean.html
>> > // @see http://camel.apache.org/bean-binding.html
>> > class MyBean {
>> > public String method(@Header("str1") str1, @Header("str2) s
http://camel.apache.org/bean.html
> > // @see http://camel.apache.org/bean-binding.html
> > class MyBean {
> > public String method(@Header("str1") str1, @Header("str2) str2) {
> >
> > }
> > }
> >
> >
> > Jan
> >
> >> -
> }
>
>
> Jan
>
>> -Ursprüngliche Nachricht-
>> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
>> Gesendet: Samstag, 1. Juni 2013 08:09
>> An: users@camel.apache.org
>> Betreff: Re: bean with method parameters in camel
>>
>> You ca
You cannot do this.
On Thu, May 30, 2013 at 11:48 AM, Tarun Kumar wrote:
> If i try .bean(className, methodName('a', 'b')) : it calls method
> methodName of class className with method parameters 'a' and 'b'. However,
> if i want value of method variables to come from class variables, how can i
>