camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to convert property value to array
Date Wed, 09 Nov 2016 08:07:43 GMT
Make a method call where you create that array or use dynamic
languages like groovy with some inlined script.



On Wed, Nov 9, 2016 at 5:42 AM, imranrazakhan <imranrazakhan@gmail.com> wrote:
> I tried following but it is not working as u expected
>
> // route
> from("direct:start")
>   .setHeader("myList",  simple(" ${properties:cool.foo} ") })
>   .log("cid ==== "+simple("${header.myList.size}"))
>   .to("direct:end"}");
>
> Failed to invoke method: size on null due to:
> org.apache.camel.component.bean.MethodNotFoundException: Method with name:
> size not found on bean: a,b,c of type: java.lang.String. Exchange[]
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-convert-property-value-to-array-tp5789924p5789930.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message