Issue
I'd like to dynamically invoke bean method depending on some header value:
This seems doesn't work: <to uri="bean:myBean?method=${in.header.methodName}&multiParameterArray=true"/>
Any ideas?
Solution
You can just set the method name in the header called "CamelBeanMethodName" and route your message to "bean" without specifying any method.
Answered By - smarquis
Answer Checked By - Timothy Miller (JavaFixing Admin)