I need the list to be dynamic though, so foo and bar could end up being foo-1,...foo-n, and same for bar...
Ie..dynamic "routing" based on a message id and need the message to arrive at a given endpoint, jms in this case. There is an admin process to create the actual JMS topic/queue, but my routing piece needs to stay dynamic... Thanks! --- On Wed, 11/19/08, Claus Ibsen <[EMAIL PROTECTED]> wrote: > From: Claus Ibsen <[EMAIL PROTECTED]> > Subject: Re: RecipientList Distribution & JM > To: [email protected], [EMAIL PROTECTED] > Date: Wednesday, November 19, 2008, 11:44 PM > Hi > > I think you can use endpoint ids in the destinationIds > header. > > <endpoint id="foo" > uri="jms:queue:foo"/> > <endpoint id="bar" > uri="jms:queue:bar"/> > > And then you can have foo and bar in the header. > > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > > > > On Thu, Nov 20, 2008 at 7:10 AM, Coder One > <[EMAIL PROTECTED]> wrote: > > destionationIds="A" or "A,B,C" > > > > > from("direct:start").recipientList().header("destinationIds"); > > > > How can I distribute the above to JMS queue or topic > A, B, C respectively? Or similarly, would it be possible to > name the JMS queues/topics as abc.xyz.A abc.xyz.B, and > abc.xyz.C and route accordingly? > > > > Thanks... > > > > > > > > > > > >
