INT-1745 added support for error-channel to in-the-chain gateways
This commit is contained in:
@@ -45,7 +45,7 @@ public class GatewayParser extends AbstractSimpleBeanDefinitionParser {
|
||||
};
|
||||
|
||||
private static String[] innerAttributes = new String[] {
|
||||
"request-channel", "reply-channel", "request-timeout", "reply-timeout"
|
||||
"request-channel", "reply-channel", "request-timeout", "reply-timeout", "error-channel"
|
||||
};
|
||||
|
||||
|
||||
@@ -75,7 +75,8 @@ public class GatewayParser extends AbstractSimpleBeanDefinitionParser {
|
||||
IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "request-channel", "defaultRequestChannel");
|
||||
IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "reply-channel", "defaultReplyChannel");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "request-timeout", "defaultRequestTimeout");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "reply-timeout", "defaultReplyTimeout");
|
||||
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "reply-timeout", "defaultReplyTimeout");
|
||||
IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "error-channel");
|
||||
}
|
||||
|
||||
private void postProcessGateway(BeanDefinitionBuilder builder, Element element) {
|
||||
|
||||
@@ -660,6 +660,15 @@
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="error-channel" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Identifies channel that error messages will be sent to if a failure occurs in this
|
||||
adapter's invocation. To completely suppress Exceptions, provide a
|
||||
reference to the "nullChannel" here.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:element name="inbound-channel-adapter">
|
||||
|
||||
Reference in New Issue
Block a user