camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Bean Binding Config In Spring XML Instead Of Annotations
Date Sat, 02 Jan 2010 03:27:47 GMT

I don't think current Camel bean binding[1] supports this spring 
configure feature, and URI options for method parameters the m is not a 
type safe way.
If you don't want to use the annotation on the POJO method, you can use 
the Exchange as the POJO method parameter, but it still makes your POJO 
depends on the camel-core.



greenbean 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?
> Thanks.

View raw message