Skip to content

Commit ac0d94d

Browse files
committed
fix: SqsOutboundChannelAdapterParser success-channel attribute
1 parent 50cca05 commit ac0d94d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

int-aws-support/src/main/java/org/springframework/integration/aws/config/xml/SqsOutboundChannelAdapterParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected AbstractBeanDefinition parseConsumer(Element element, ParserContext pa
2020
.setExpressionValueIfAttributeDefined("message-deduplication-id")
2121
.setExpressionValueIfAttributeDefined("send-timeout")
2222
.setPropertyReferenceIfAttributeDefined("message-converter")
23-
.setPropertyReferenceIfAttributeDefined("outputChannelName", "success-channel")
23+
.setPropertyValueIfAttributeDefined("outputChannelName", "success-channel")
2424
;
2525

2626
if (element.hasAttribute("sync")) {

int-aws-support/src/test/java/org/springframework/integration/aws/config/xml/SqsOutboundChannelAdapterParserTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void testReader() {
3838
.extracting(BeanDefinition::getPropertyValues)
3939
.matches(properties -> properties.get("async").equals(new TypedStringValue("false")), "async")
4040
.matches(properties -> properties.get("messageConverter").equals(new RuntimeBeanReference("msgConv")), "message converter")
41+
.matches(properties -> properties.get("outputChannelName").equals(new TypedStringValue("okChannel")), "success channel")
4142
;
4243
}
4344
}

int-aws-support/src/test/resources/sqs-outbound-channel-adapter.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
sqs="sqsClient"
1313
sync="true"
1414
message-converter="msgConv"
15-
error-message-strategy="emb"/>
15+
error-message-strategy="emb"
16+
success-channel="okChannel"/>
1617
</beans>

0 commit comments

Comments
 (0)