From 8e87f2becea4e177bce66b1fc2054b709a1f0dee Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Wed, 15 Mar 2017 18:47:58 +0530 Subject: [PATCH] Add doc for using errorChannel subscription Resolves #849 --- .../src/main/asciidoc/spring-cloud-stream-overview.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc b/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc index 9dca51bdd..8b3ead78e 100644 --- a/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc +++ b/spring-cloud-stream-core-docs/src/main/asciidoc/spring-cloud-stream-overview.adoc @@ -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.).