From 783861945d98be140fa2e0bd2d22162efe020916 Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Mon, 15 Dec 2008 15:59:28 +0000 Subject: [PATCH] OPEN - issue INT-496: Design success/failure notifications for source adapters http://jira.springframework.org/browse/INT-496 Added logging of failed error subscribers --- .../integration/channel/MessagePublishingErrorHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/channel/MessagePublishingErrorHandler.java b/org.springframework.integration/src/main/java/org/springframework/integration/channel/MessagePublishingErrorHandler.java index 526a5ebaee..4b580cbe09 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/channel/MessagePublishingErrorHandler.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/channel/MessagePublishingErrorHandler.java @@ -34,6 +34,7 @@ import org.springframework.util.Assert; * {@link MessageChannel}. * * @author Mark Fisher + * @author Iwein Fuld */ public class MessagePublishingErrorHandler implements ErrorHandler, BeanFactoryAware { @@ -84,7 +85,8 @@ public class MessagePublishingErrorHandler implements ErrorHandler, BeanFactoryA sent = errorChannel.send(new ErrorMessage(t)); } } - catch (Throwable ignore) { // message will be logged only + catch (Throwable errorDeliveryError) { // message will be logged only + logger.error("Error message was not delivered, it will be dumped in the error log", errorDeliveryError); } } if (!sent && logger.isErrorEnabled()) {