Beautiful....I did not know about that body() call. This stuff is powerful!!! :)
Thanks for all your help! --- On Thu, 11/20/08, Claus Ibsen <[EMAIL PROTECTED]> wrote: > From: Claus Ibsen <[EMAIL PROTECTED]> > Subject: Re: RecipientList & Bean Continuing Rout > To: [email protected], [EMAIL PROTECTED] > Date: Thursday, November 20, 2008, 9:21 AM > Hi > > The dynamic recpient list is documented here > http://activemq.apache.org/camel/recipient-list.html > > It has a sample how to use a tokenizer to split a string > based on > comma. Just used body() instead of header > from("jms:myqueue").to("bean:eventListener?methodName=process").recipientList(body().tokenize(",")); > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > > > > On Thu, Nov 20, 2008 at 6:15 PM, Coder One > <[EMAIL PROTECTED]> wrote: > > > from("jms:myqueue").to("bean:eventListener?methodName=process").recipientList(???).. > > > > My event Listener returns a string of comma delimiter > route URI, say, jms:q1, jms:q2, etc...and now I would like > to further route the event to all the q1, q2, etc... > > > > q1, q2, come from database keyed by the event... > > > > Is recipientList the right way? How? > > > > Thanks... > > > > > > > > > > > >
