RE: bean with method parameters in camel

2013-06-03 Thread Diether
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

Re: bean with method parameters in camel

2013-06-03 Thread Tarun Kumar
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

Re: bean with method parameters in camel

2013-06-03 Thread Claus Ibsen
;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

Re: bean with method parameters in camel

2013-06-03 Thread Tarun Kumar
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 > > > >> -

Re: bean with method parameters in camel

2013-06-02 Thread Claus Ibsen
> } > > > 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

AW: bean with method parameters in camel

2013-06-01 Thread jhm
} } 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

Re: bean with method parameters in camel

2013-05-31 Thread Claus Ibsen
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 >

bean with method parameters in camel

2013-05-30 Thread Tarun Kumar
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