[INT-2863] XML configuration does not allow to configure a ReleaseStrategy on a <resequencer> Created: 18/Dec/12  Updated: 25/Jan/13  Resolved: 15/Jan/13

Status: Closed
Project: Spring Integration
Component/s: Core
Affects Version/s: 2.2. GA
Fix Version/s: 3.0 M1, 2.2.1

Type: Bug Priority: Major
Reporter: Stefan Ferstl Assignee: Gary Russell
Resolution: Complete Votes: 1
Labels: PullRequest
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Reference URL: http://static.springsource.org/spring-integration/reference/htmlsingle/#d4e2307

 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.



 Comments   
Comment by Stefan Ferstl [ 18/Dec/12 ]

Opened pull request: https://github.com/SpringSource/spring-integration/pull/696

Generated at Tue Nov 12 01:44:27 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.