I can use a ProducerTemplate and still keep the destination endpoint configuration in the Spring file. Thanks, that's exactly the solution I was overlooking, I was too focused on trying to configure a route to do what I wanted.
-----Original Message----- From: Claus Ibsen [mailto:[email protected]] Sent: Wednesday, September 09, 2009 2:22 AM To: [email protected] Subject: Re: A processor with multiple outputs On Tue, Sep 8, 2009 at 11:09 PM, Chris Audley<[email protected]> wrote: > I need to create a processor that takes a single message and results > in two separate messages with unique headers for each message. My > plan is to use the headers to dynamically route each result message to > the appropriate JMS queue. > > Is there some other approach I'm not seeing? > You can use the ProducerTemplate from a processor to create and send a new message. And you can send as many as you like. And you can use it from a Processor too. -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
