MessagePublishingErrorHandler is no longer set on a Message Endpoint that is itself subscribing to the "errorChannel".

This commit is contained in:
Mark Fisher
2008-04-11 15:32:05 +00:00
parent 87e5edb0dc
commit 6842be8e40

View File

@@ -340,7 +340,7 @@ public class MessageBus implements ChannelRegistry, EndpointRegistry, Applicatio
}
this.registerChannel(outputChannelName, new SimpleChannel());
}
if (!dme.hasErrorHandler() && this.getErrorChannel() != null) {
if (!dme.hasErrorHandler() && this.getErrorChannel() != null && !this.getErrorChannel().equals(channel)) {
dme.setErrorHandler(new MessagePublishingErrorHandler(this.getErrorChannel()));
}
}