Hi Claus,
I was digging around the code and ran sendToRecipientList through the
debugger and it looks like a Collections.singletonList(value).iterator() was
created. This list only had a single value in it which was:
activemq:/wijiscommons.org/ssaf/milwaukee/mailboxes/dropOffFolderMailbox/workflows/w1/inbound_queue/,/wijiscommons.org/ssaf/milwaukee/mailboxes/dropOffFolderMailbox/workflows/w2/inbound_queue/
I looked in the activemq manager console and both queues above were created
and given then message:
localhost:8161/admin/queues.jsp
I can't quite identify why they were created, but this works for my goal to
have the messages distributed to multiple queues. The routingSlip
functionality seems similiar and has a nice interface in the Spring XML
Extensions:
<routingSlip headerName="aRoutingSlipHeader" uriDelimiter="#"/>
Would it be possible for the code update for recipientList to be along the
same lines?
Thanks,
Yogesh
Claus Ibsen-2 wrote:
>
> Hi
>
> I never wrote how it works. The header that it uses must be
> Iterateable, so you can for instance add a List<String> with your
> endpoints if you have multiple
>
>
> List<String> destinations = new ArrayList<String>():
> destinations.add("activemq:topic:foo");
> destinations.add("activemq:topic:bar");
>
> exchange.getIn().setHeader("myDestinationsHeader", destinations);
>
>
>
>
> On Tue, Jan 13, 2009 at 1:08 PM, Claus Ibsen <[email protected]>
> wrote:
>> Ticket is
>> https://issues.apache.org/activemq/browse/CAMEL-1251
>>
>> On Tue, Jan 13, 2009 at 12:59 PM, Claus Ibsen <[email protected]>
>> wrote:
>>> Hi
>>>
>>> I have looked into the code. I dont think it automatic tokenize using
>>> comma. You have to add that manually. In spring DSL that can be kinda
>>> hard. So I am working on improving this.
>>>
>>> At the same time the wiki needs a little update as well. Thanks.
>>>
>>>
>>> On Mon, Jan 12, 2009 at 11:37 PM, ychawla <[email protected]>
>>> wrote:
>>>>
>>>> Hello All,
>>>> I was reading this thread and I had a similiar question to the original
>>>> poster. I have a simple spring route like this:
>>>>
>>>> <recipientList>
>>>> <header>WorkflowRecipients</header>
>>>> </recipientList>
>>>>
>>>> And I set the header like this in code:
>>>> message.setHeader("WorkflowRecipients",
>>>> "activemq:Workflow1,activemq:Workflow2,activemq:Workflow3");
>>>>
>>>> It seems to automatically tokenize based on the ",". This works great
>>>> for
>>>> me as I would like to multicast dynamically to all these recipients.
>>>> In the
>>>> Spring Route, does RecipientList automatically tokenize based on ","
>>>> and is
>>>> this token configurable? The WIKI could probably be brushed up based
>>>> on
>>>> this answer and I wouldn't mind doing it:
>>>>
>>>> http://activemq.apache.org/camel/recipient-list.html
>>>>
>>>> Thanks,
>>>> Yogesh
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Problem-with-Dynamic-Recipient-list-and-XPath-tp19781189s22882p21425421.html
>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> /Claus Ibsen
>>> Apache Camel Committer
>>> Blog: http://davsclaus.blogspot.com/
>>>
>>
>>
>>
>> --
>>
>> /Claus Ibsen
>> Apache Camel Committer
>> Blog: http://davsclaus.blogspot.com/
>>
>
>
>
> --
>
> /Claus Ibsen
> Apache Camel Committer
> Blog: http://davsclaus.blogspot.com/
>
>
--
View this message in context:
http://www.nabble.com/Problem-with-Dynamic-Recipient-list-and-XPath-tp19781189s22882p21505487.html
Sent from the Camel - Users mailing list archive at Nabble.com.