camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From imranrazakhan <imranrazak...@gmail.com>
Subject Re: How to convert property value to array
Date Wed, 09 Nov 2016 04:42:04 GMT
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.

Mime
View raw message