I am able to get it working by combining recipientList and
interceptFromEndpoint features.
<interceptSendToEndpoint uri="activemq:queue:*">
<process ref="receiverListIntercepter" /> - this class uses
CamelInterceptedEndpoint to identify where exchange is getting forwarded and
uses that value as Receiver in next step
<setHeader headerName="Receiver">
<simple>${in.header.Receiver}</simple>
</setHeader>
</interceptSendToEndpoint>
<process ref="recipientListGenerator" />
<recipientList delimiter=",">
<simple>${in.header.RecipientList}</simple>
</recipientList>
However, if better solution is available, do let me know. I believe higher
version of Camel allows creation of custom exchange in case of
multicast/recipient list.
Thanks
Shiv
--
View this message in context:
http://camel.465427.n5.nabble.com/Mutlicasting-to-dymanic-recipient-list-tp5743826p5743851.html
Sent from the Camel - Users mailing list archive at Nabble.com.