RE: bean with method parameters in camel

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

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

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 >