java - Iterating collection in mule -
i've list of subscriber i'm getting java component in mule flow , each subscriber i've queue in want publish payload. payload same subscriber. i'm looking @ 2 option -
1. foreach 2. collection splitter
1 fits in scenario , how achieve ?
for scenario have specified both processors of mule should job.
i suggest go collection-splitter need post each item onto queue.
try following approach
<flow name="sampleflow"> .... inbound endpoint.... .... message processors .... <component > ... component generating collections output payload ... <collection-splitter enablecorrelation="if_not_set"></collection-splitter> <jms:outbound-endpoint queue="subscriber.queue.name" connector-ref="jmsconnector" exchange-pattern="one-way" /> </flow> hope helps.
Comments
Post a Comment