[ https://issues.apache.org/jira/browse/CAMEL-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben O'Day resolved CAMEL-4226. ------------------------------ Resolution: Won't Fix thanks Claus, I figured there were good reasons this wasn't done already, but its been requested by several people...so I had to ask (I'll do so on the dev list next time). I'll close this out for now, maybe we can revisit it down the road... > add Expressions support on to(), bean() and beanRef() to allow for dynamic > endpints (similar to recipientList) > -------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-4226 > URL: https://issues.apache.org/jira/browse/CAMEL-4226 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Ben O'Day > Assignee: Ben O'Day > Priority: Minor > Fix For: 2.9.0 > > > just a thought, but any reason we couldn't overload these APIs to also > support Expressions? Is there another way to do this? > to(simple("bean:myBean?method=${headers.operationName}")) > bean(MyBean.class, simple("${headers.operationName}")) > beanRef("myBean", simple("${headers.operationName}")) > The goal being to make it (slighlty) easier/more flexible than using > recipientList for the same... > recipientList(simple("bean:myBean?method=${headers.operationName}")) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira