Add doc for using errorChannel subscription

Resolves #849
This commit is contained in:
Ilayaperumal Gopinathan
2017-03-15 18:47:58 +05:30
committed by markfisher
parent edc37ce53e
commit 8e87f2bece

View File

@@ -385,6 +385,7 @@ public class SendingBean {
}
}
----
==== Producing and Consuming Messages
You can write a Spring Cloud Stream application using either Spring Integration annotations or Spring Cloud Stream's `@StreamListener` annotation.
@@ -424,6 +425,14 @@ public class TransformProcessor {
}
----
===== Spring Integration Error Channel Support
Spring Cloud Stream supports publishing error messages received by the Spring Integration global
error channel. Error messages sent to the `errorChannel` can be published to a specific destination
at the broker by configuring a binding for the outbound target named `error`. For example, to
publish error messages to a broker destination named "myErrors", provide the following property:
`spring.cloud.stream.bindings.error.destination=myErrors`
===== Using @StreamListener for Automatic Content Type Handling
Complementary to its Spring Integration support, Spring Cloud Stream provides its own `@StreamListener` annotation, modeled after other Spring Messaging annotations (e.g. `@MessageMapping`, `@JmsListener`, `@RabbitListener`, etc.).