Hi There is now a toD <toD> as the dynamic variation of to. I opted for toD to keep the name similar with to, but also wanted a short hand name. We have a toF in Java DSL for a shorthand for a String.format variation.
The documentation will be here when the website is updated http://camel.apache.org/message-endpoint.html On Tue, Jul 14, 2015 at 9:27 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > Normally we would post this to @dev as its about development of Apache Camel. > > But I think a lot of Camel users may want to provide their thoughts on > the idea to add a simple to use dynamic to. > > See this ticket for background and the idea > https://issues.apache.org/jira/browse/CAMEL-8966 > > I think if we would redo Camel today then the to would support dynamic > out of the box, as its such a common use-case, and people today have > to use recipient list. No problem really there but its a bit more > verbose, and some users may not at first know what a "recipient list" > is? Using from -> to -> to -> bean -> to is often very easy to > understand for users that are not even familiar with the EIP patterns. > > Any thoughts? > > > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2