Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2863

XML configuration does not allow to configure a ReleaseStrategy on a <resequencer>

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.2. GA
    • Fix Version/s: 3.0 M1, 2.2.1
    • Component/s: Core
    • Labels:

      Description

      According to the documentation (link), it should be possible to configure a resequencer with a ReleaseStrategy. This was also possible in older versions of spring-integration. However, when I try to configure my own release strategy, e.g.

      <resequencer id="myResequencer"
          input-channel="myInputChannel"
          release-strategy="myReleaseStrategy"/>
      

      I get a SAXParseException saying that the attribute release-strategy is not allowed.

      There are two problems here. First, the spring-integration-2.2.xsd does really not allow the definition of a release-strategy attribute. Second, the parsing of the release strategy is implemented in AggregatorParser instead of AbstractCorrelatingMessageHandlerParser. On the other hand, the AbstractCorrelatingMessageHandler, which is the base class for aggregators and resequencers, holds and invokes the release strategy.

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            sferstl Stefan Ferstl
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: