Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1008

Resequencer pattern for EIP component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.2
    • servicemix-eip
    • None
    • Java 1.5

    • Patch Available

    Description

      Attached are patches that include a resequencer endpoint for the servicemix-eip component.

      • patch-servicemix-eip.txt: resequencer classes
      • patch-servicemix-core.txt: general helper classes

      The resequencing algorithm is designed to work on streams of objects (e.g. MessageExchanges) based on a timeout policy. It works slightly different than Camel's resequencer as it doesn't make batch-reads of predefined (maximum) size (although a capacity parameter prevents the resequencer from running out of memory). The algorithm details are described in the javadocs of class

      • org.apache.servicemix.eip.support.resequence.ResequencerEngine

      This class is independent of JBI/ServiceMix. It can be configured to work on any stream of objects by providing a SequenceElementComparator<E> implementation. The class

      • org.apache.servicemix.eip.patterns.Resequencer

      is the EIP endpoint that uses the resequencing algorithm. An example shows how to use the resequencer (resequencer-sample.zip), in addition to the unit tests.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            mrt1nz Martin Krasser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: