[ https://issues.apache.org/jira/browse/CAMEL-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073340#comment-13073340 ]
Claus Ibsen commented on CAMEL-4226: ------------------------------------ See discussion at http://camel.465427.n5.nabble.com/DISCUSS-Dynamic-to-endpoint-tp4642376p4642376.html > 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