From 4c171a54edc61a660031de7d6e22c5c220774e01 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Tue, 29 Sep 2015 13:44:24 -0400 Subject: [PATCH] INT-3835: Fix ERROR_CHANNEL Constant in Reference JIRA: https://jira.spring.io/browse/INT-3835 --- .../local-test-dir/rollback/sftpSource1.txt | 1 + src/reference/asciidoc/configuration.adoc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 spring-integration-sftp/local-test-dir/rollback/sftpSource1.txt diff --git a/spring-integration-sftp/local-test-dir/rollback/sftpSource1.txt b/spring-integration-sftp/local-test-dir/rollback/sftpSource1.txt new file mode 100644 index 0000000000..90607bb217 --- /dev/null +++ b/spring-integration-sftp/local-test-dir/rollback/sftpSource1.txt @@ -0,0 +1 @@ +source1 \ No newline at end of file diff --git a/src/reference/asciidoc/configuration.adoc b/src/reference/asciidoc/configuration.adoc index a154a0929f..65dbf6e4cf 100644 --- a/src/reference/asciidoc/configuration.adoc +++ b/src/reference/asciidoc/configuration.adoc @@ -160,7 +160,8 @@ Instead, to handle errors for asynchronous processes requires an asynchronous er Spring Integration supports error handling for its components by publishing errors to a Message Channel. Specifically, the Exception will become the payload of a Spring Integration Message. That Message will then be sent to a Message Channel that is resolved in a way that is similar to the 'replyChannel' resolution. -First, if the request Message being handled at the time the Exception occurred contains an 'errorChannel' header (the header name is defined in the constant: IntegrationMessageHeaderAccessor.ERROR_CHANNEL), the ErrorMessage will be sent to that channel. +First, if the request Message being handled at the time the Exception occurred contains an 'errorChannel' header (the +header name is defined in the constant: MessageHeaders.ERROR_CHANNEL), the ErrorMessage will be sent to that channel. Otherwise, the error handler will send to a "global" channel whose bean name is "errorChannel" (this is also defined as a constant: IntegrationContextUtils.ERROR_CHANNEL_BEAN_NAME). Whenever relying on Spring Integration's XML namespace support, a default "errorChannel" bean will be created behind the scenes.