Hi I never wrote how it works. The header that it uses must be Iterateable, so you can for instance add a List<String> with your endpoints if you have multiple
List<String> destinations = new ArrayList<String>(): destinations.add("activemq:topic:foo"); destinations.add("activemq:topic:bar"); exchange.getIn().setHeader("myDestinationsHeader", destinations); On Tue, Jan 13, 2009 at 1:08 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Ticket is > https://issues.apache.org/activemq/browse/CAMEL-1251 > > On Tue, Jan 13, 2009 at 12:59 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: >> Hi >> >> I have looked into the code. I dont think it automatic tokenize using >> comma. You have to add that manually. In spring DSL that can be kinda >> hard. So I am working on improving this. >> >> At the same time the wiki needs a little update as well. Thanks. >> >> >> On Mon, Jan 12, 2009 at 11:37 PM, ychawla <premiergenerat...@yahoo.com> >> wrote: >>> >>> Hello All, >>> I was reading this thread and I had a similiar question to the original >>> poster. I have a simple spring route like this: >>> >>> <recipientList> >>> <header>WorkflowRecipients</header> >>> </recipientList> >>> >>> And I set the header like this in code: >>> message.setHeader("WorkflowRecipients", >>> "activemq:Workflow1,activemq:Workflow2,activemq:Workflow3"); >>> >>> It seems to automatically tokenize based on the ",". This works great for >>> me as I would like to multicast dynamically to all these recipients. In the >>> Spring Route, does RecipientList automatically tokenize based on "," and is >>> this token configurable? The WIKI could probably be brushed up based on >>> this answer and I wouldn't mind doing it: >>> >>> http://activemq.apache.org/camel/recipient-list.html >>> >>> Thanks, >>> Yogesh >>> -- >>> View this message in context: >>> http://www.nabble.com/Problem-with-Dynamic-Recipient-list-and-XPath-tp19781189s22882p21425421.html >>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> >> /Claus Ibsen >> Apache Camel Committer >> Blog: http://davsclaus.blogspot.com/ >> > > > > -- > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/