Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mule Custom Aggregator

Mule Custom Aggregator

ksuhas4455

August 03, 2017
Tweet

More Decks by ksuhas4455

Other Decks in Programming

Transcript

  1. What is an Aggregator?  A message splitter can is

    used to break down an outgoing message into parts and dispatch those parts over different endpoints configured on the router. Then this is the task of aggregator to do just opposite to splitter. An aggregator gets input from various connectors and join them in one flow. The actual endpoint used for each object in the list is determined by a filter configured on the endpoint itself. If the endpoint’s filter accepts the object, the endpoint will be used to route the object.
  2. What is custom aggregator?  A Custom Aggregator is an

    instance of a user-written class that aggregates messages. This class must implement the interface MessageProcessor. Often, it will be useful for it to subclass AbstractAggregator, which provides the skeleton of a thread-safe aggregator implementation, requiring only specific correlation logic. As with most custom objects in Mule, it can be configured either with a fully specified class name or as a reference to a Spring bean. It can also be configured with the same timeout and failOnTimeout attributes described under Collection Aggregator.
  3. Mule Custom Aggregator – Configuration Wizard (General Tab)  Following

    are the options on general tab –  Display Name – The name of the component to be displayed in Mule flow.  Class – Fully qualified class name of the custom correlation aggregate router to be used.  Timeout – The timeout time in milliseconds.  Message Info Mapping – Maps the current message attributes with the known message attributes.  Store Prefix – Defines the prefix of the object store names.
  4. Mule Custom Aggregator – Configuration Wizard (Advanced Tab)  This

    tab is used to add business events tracking for the whole process of aggregator.
  5. Mule Custom Aggregator – Configuration Wizard (Properties Tab)  This

    tab is used to add some spring properties that would be used in the process of aggregator.
  6. Mule Custom Aggregator –Message Info Mapping Configuration Wizard (general Tab)

    (Cont.)  Following are the options on general tab –  Message ID Expression – Expression for mapping message attributes to messageIdExpression.  Correlation ID Expression – Expression for mapping message attributes to correlationIdExpression.
  7. Mule Custom Aggregator – Configuration Wizard (Notes and Meta-Data Tabs)

     Notes Tab, is used to add special notes for this filter component.  META-DATA Tab, is used to add meta-data for this filter component.