On Tue, May 1, 2012 at 8:11 PM, Purple Tea <[email protected]> wrote:
> Thank you for your reply.
>
> Does the simple language also allows us to send multiple method parameters
> like the new features offered in the bean binding?
>
Yes, just provide a method signature such with the parameters
separated by comma.
There is a limitation on what can be passed in as parameters, but
thats documented on that bean binding page
<simple>${body.doSomething("Hi Camel", ${header.bar}, true)}</simple>
For example from an unit test
public void testBodyOgnlOnStringWithOgnlParams() throws Exception {
exchange.getIn().setBody("Camel");
exchange.getIn().setHeader("max", 4);
exchange.getIn().setHeader("min", 2);
assertExpression("${body.substring(${header.min},
${header.max})}", "me");
}
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Invoking-a-bean-returned-by-a-previous-bean-invocation-tp5676696p5678641.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/