Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
On Thu, Sep 22, 2011 at 4:22 PM, Kovacs Zsolt <[email protected]> wrote: > Hi, > A have a bean with many-many interface functions, I want to route to them > without to explicitly hard code the function name into a switch() ... > statement. > > For example: The method name itself I put in exchange header or a > property. Then It's possible to send the exchange to > > .to("bean:beanName?method=${header.collect}") > > where ${collect} come from header or property. > > Thanks, > Zsolt > -- Claus Ibsen ----------------- 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/
