Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1638

AggregatorStrategy - should also be invoked for the first exchange

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-M1, 1.6.1
    • 2.0-M2
    • camel-core
    • None

    Description

      Using aggregator, splitterl, multicast etc. that supports AggregatorStrategy all have the flaw that they skip invoking this interface callback for the very first exchange.

      This hazzles the end users implementing this interface if they are to be able to traverse all the exchanges, to eg summing a total amount or the likes.
      And its also a bit confusing as well why the first one is skipped.

      And if you aggregator out of order then you dont know which one was the first exchange.

      So we should invoke this callback always. And the first time the oldExchange parameter is null.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: