My routes use a bean for utility functions...

public void setSerializationType(Exchange ex, Class clazz) { ... }
       

I've tried calling the method using Simple expressions, but Camel always
complains it's unable to bind the Class parameter; is this even possible?
Based on documentation, String appears to be the default return type for
expressions unless converted, but did not find a way to do that.

<bean method="setSerializationType(*, com.acme.Account.class)"/>
<bean method="setSerializationType(*, ${com.acme.Account.class})"/>
<bean method="setSerializationType(*, ${type:com.acme.Account.class})"/>







--
View this message in context: 
http://camel.465427.n5.nabble.com/Call-bean-method-with-argument-type-Class-using-Simple-expression-tp5780383.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to