using Scatter Gather which concurrently cast the message to each routes and it collects results from all the routes and aggregates into a single message. During processing of Scatter Gather processing, if any of the routes failed, it doesn't stop sending message to other configured routes, so it is possible that one or more configured routes fails concurrently. By default, if any of the router fails during Scatter Gather processing, the following action will be performed. • Set a exception payload for each failed route. • Throws a CompositeRoutingException.
route in the context of a single message router. Exceptions are correlated to each route through a sequential ID. Scatter Gather application will not start if you have configured with less than two routes. It should always contains two or more routes. Let's walkthrough setting up Scatter Gather with Mule application.
you need to drop Scatter Gather route in Message Processor of Mule Flow. Now you need to send a message concurrently to multiple routes via HTTP, JMS, Web Service Consumer, File etc. To achieve this we will add different connectors under Scatter Gather route and placing them parallelly and configure all the connectors in Scatter Gather route.
been used after Web Service Consumer and HTTP Requestor. Basically we are getting result back from both endpoints and we are transforming both response to single generic format as response from both route will be in different format. One more transform has been placed at the end of Scatter Gather route, it is because this Transform will aggregates the result from all the routes to single message.