You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Crivellaro <ma...@gmail.com> on 2013/08/02 11:10:12 UTC

bean String parameter binding

Hi All,
I am using Camel 2.11.2 with a spring context.
In my route I am calling a bean method passing 2 wildcard params and a
string.

for example:

<to uri="bean:theHeaderUtil?method=SetMissingHeaderToZero(*, 'XHeader1')" /> 


method signature is:
SetMissingHeaderToZero(Exchange exchange, String headersCSV)

everything works fine but camel is writing following WARN:
WARN  org.apache.camel.util.ObjectHelper  - Cannot find class: XHeader1

is there a way to let camel now it should not try to match the parameter
with a class?
Am I doing something wrong?

Thanks,
Marco



--
View this message in context: http://camel.465427.n5.nabble.com/bean-String-parameter-binding-tp5736688.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: bean String parameter binding

Posted by Marco Crivellaro <ma...@gmail.com>.
Hi,
works fine on 2.12-SNAPSHOT, I can't fetch some dependencies to test it on
2.11.2-SNAPSHOT

I reported I was using 2.11.2 by mistake, the issue is shown on 2.11.1


Thanks,
Marco



--
View this message in context: http://camel.465427.n5.nabble.com/bean-String-parameter-binding-tp5736688p5736692.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: bean String parameter binding

Posted by Claus Ibsen <cl...@gmail.com>.
Can you try with SNAPSHOT code. I think its fixed on master, and
possible also on the 2.11 branch.

On Fri, Aug 2, 2013 at 11:10 AM, Marco Crivellaro <ma...@gmail.com> wrote:
> Hi All,
> I am using Camel 2.11.2 with a spring context.
> In my route I am calling a bean method passing 2 wildcard params and a
> string.
>
> for example:
>
> <to uri="bean:theHeaderUtil?method=SetMissingHeaderToZero(*, 'XHeader1')" />
>
>
> method signature is:
> SetMissingHeaderToZero(Exchange exchange, String headersCSV)
>
> everything works fine but camel is writing following WARN:
> WARN  org.apache.camel.util.ObjectHelper  - Cannot find class: XHeader1
>
> is there a way to let camel now it should not try to match the parameter
> with a class?
> Am I doing something wrong?
>
> Thanks,
> Marco
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/bean-String-parameter-binding-tp5736688.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen