On Fri, Jan 1, 2010 at 7:26 PM, greenbean <[email protected]> wrote:
>
> Is it possible to do something similar to what is done with annotations, but
> in Spring XML?
>
>  doSomething(@Header(value = "header1") String headerValue1, @Body String
> body)
>
> Say I don't want to use Camel annotations in my POJO.  However, I would like
> to bind "header1" to my headerValue1 parameter in the Spring XML
> configuration (assume I will have multiple input String parameters).  I kind
> of expected it to be one of the options on the bean... <to
> uri="bean:testBean?method=doSomething"/>.  Say
> ?method=doSomething&header1=headerValue1... etc.
>
> Is something like this possible?
>

No its not possible. And if I recall correctly Java reflection cannot
get parameter names, so you either need to use parameter index or
annotations to bind them.


> Thanks.
> --
> View this message in context: 
> http://old.nabble.com/Bean-Binding-Config-In-Spring-XML-Instead-Of-Annotations-tp26987217p26987217.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to