Re: Math Operation in Loop

2018-04-22 Thread Weiqiang Wang
erties.CamelLoopIndex * 10 + 1")) > .setHeader("methodExpressionValue", method(Utilities.class, > "myExpression")) > .log("${header.groovyExpressionValue}") > .log("${header.methodExpressionValue}") > > zoran > &g

Math Operation in Loop

2018-04-20 Thread Weiqiang Wang
Hi, I want to have some math operation in route loop based on the index: .loop(5) .log(String.valueOf(Integer.parseInt("${property.CamelLoopIndex}")*10+1)); But I got error: error=For input string: "${property.CamelLoopIndex}"} If I change it to a constant string, it works. (e.g. "1"). I also

Monitor memory usage for every single route

2018-03-28 Thread Weiqiang Wang
Hi, Is there a way to monitor memory usage for each individual route at runtime. Thank you -- Weiqiang