Hi

Use the Content Based Router to route the message to either one.
And on the way you can set the header accordingly.



On Thu, May 20, 2010 at 5:06 AM, Mike Reynolds <miker_nos...@yahoo.com> wrote:
>
> I'm using Camel 2.2, ActiveMQ 5.3.
> I'd like to route a single message to a number ActiveMQ MessageGroups (as
> determined at runtime based on the message content).
>
> Use Case:
> 1) message FOO comes in of type BAR
> 2) a db lookup is performed, and it is determined that all BAR messages must
> be placed in both MessageGroup BAZ1 and MessageGroup BAZ2
>
> In camel, how do I map this?  I was hoping to use "@RecipientList", but they
> are all the same queue (I was hoping I could specify the JMSXGroupID in the
> uri of the destination)  Is Loop the only way to go?
>
> I'm building this with the Java DSL.
>
> Thanks so much!
> --
> View this message in context: 
> http://old.nabble.com/how-to-route-a-single-message-to-multiple-MessageGroups--tp28616669p28616669.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to