camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dermoritz <>
Subject sending nearly same message multiple times to same endpoint
Date Mon, 29 Sep 2014 11:43:21 GMT
i have to create a route that sends a message (SOAP) multiple times to same
endpoint. The only difference in message is that one attribute (xml, set) is

At the moment i am using multicast for this:

                MulticastDefinition multicast = rtdmProcess.multicast();
                // loop over event names to use same data for every target
                // and send it to rtdm
                for (String eventName : rtdmTargetEvents) {
So the endpoint receives the same message multiple times but with different
event names. This seems to work fine with cxf endpoint.
But things get odd if i add "parallelprocessing()" or if i test it with a
In case of parallelprocessing the mapping of messages and names seem to be
shuffled: if i send 2 messages m1 and m2 and want them to be multicasted to
event name N1 and N2 then m1 will be sent twice to N1 and m2 will be sent
twice to N2.
In case of using MockEndpoint without parallel processing all messages will
only be sent to the second last name set. In this case the set name seems to
be called on the same exchange again and again and not on copies. The second
(and all after) call of set name receives an exchange with the name already
Is this working as intended?
Is there probably a better pattern to be used in this case?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message