e
and entering the Camel route.
So then they are part of the Exchange and you can use the methods mentioned
previously.
--
View this message in context:
http://camel.465427.n5.nabble.com/bean-with-method-parameters-in-camel-tp5733474p5733678.html
Sent from the Camel - Users mailing
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
}
}
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 cannot do this.
>
> On
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
>
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
do that?
what i mean is :
class abc extends RouteBuilder {
private string str1