[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


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"

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.

Comment by Stefan Ferstl [ 18/Dec/12 ]

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

Generated at Mon May 25 03:01:50 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.