Re: Problem with bean method calls and parameter types

2015-11-13 Thread Antonin Stefanutti
Hi Ryan, The following Camel DSL: to("bean:beanClass?method=methodToCall(${body})") or bean(BeanClass.class, "methodToCall(${body})") Does not convert the body to String when the type of body corresponds to that of the first method parameter. Is there any step upfront in your route that may

Problem with bean method calls and parameter types

2015-11-12 Thread Ryan Moquin
Hi, I'm using Camel 2.16.0 and trying to invoke a bean method using spring xml and having some issues. It seems like any time I try to invoke a bean method with a camel message body, camel tries to pass it as a string to the method (even though the method takes the class as an argument) I'm callin