Remove error.destination property

Remove the ability to bind global error channel directly to a broker destination through error.destination property.
The preferred way to consume error messages in a brokder destination is through the binder specific DLQ mechanism.
Global error channel may still be consumed by a ServiceActivator or StreamListener, but it is not bound to a broker destination.

Remove the internal bridge channel from the global error channel that is used for content type conversion.
Remove tests associated with this feature.
Deprecate class `SingleBindingTargetBindable` as this is not used by the framework any longer.
Docs polishing.

Resolves #1398
Resolves #1401
Resolves #1269
This commit is contained in:
Soby Chacko
2018-06-26 11:58:35 -04:00
committed by Oleg Zhurakousky
parent 9626b5881c
commit a82c906913
6 changed files with 3 additions and 221 deletions

View File

@@ -737,18 +737,6 @@ public void error(Message<?> message) {
This may be a convenient option if error handling logic is the same regardless of which handler produced the error.
Also, error messages sent to the `errorChannel` can be published to the specific destination at the broker by configuring a binding named `error` for the outbound target.
This option provides a mechanism to automatically send error messages to another application bound to that destination or for later retrieval (for example, audit).
For example, to publish error messages to a broker destination named `myErrors`, set the following property:
[source,text]
----
spring.cloud.stream.bindings.error.destination=myErrors.
----
NOTE: The ability to bridge global error channel to a broker destination essentially provides a mechanism which connects
the _application-level_ error handling with the _system-level_ error handling.
===== System Error Handling
System-level error handling implies that the errors are communicated back to the messaging system and, given that not every messaging system