On Thu, May 20, 2010 at 2:10 PM, Mike Reynolds <[email protected]> wrote:
>
> But how do I send it multiple recipients?
> I'd like to send the message to QueueA with JMSXGroupID=GROUPA and QueueA
> with JMSXGroupID=GROUPB
> So - basically multiple copies of the message to the same queue but with
> different JMSXGroupID's.
>

You can send them one at a time and change the JMSXGroupID.
Or you can use a bean to send the messages from java code using the
ProducerTemplate to do that in one line of code.
Then you can set/change the JMSXGroupID in Java code.



>
> Claus Ibsen-2 wrote:
>>
>> 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 <[email protected]>
>> 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
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/how-to-route-a-single-message-to-multiple-MessageGroups--tp28616669p28620314.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