diff --git a/spring-integration-amqp/src/main/resources/org/springframework/integration/amqp/config/spring-integration-amqp-2.2.xsd b/spring-integration-amqp/src/main/resources/org/springframework/integration/amqp/config/spring-integration-amqp-2.2.xsd index 5a30583d7e..3aef53319f 100644 --- a/spring-integration-amqp/src/main/resources/org/springframework/integration/amqp/config/spring-integration-amqp-2.2.xsd +++ b/spring-integration-amqp/src/main/resources/org/springframework/integration/amqp/config/spring-integration-amqp-2.2.xsd @@ -50,6 +50,7 @@ to a channel; this is used to further correlate a confirm to a message. An example is "headers['amqp_confirmCorrelationData']", assuming that header contains the data. Messages that do not have correlation data do not generate publisher confirm messages. + Requires a CachingConnectionFactory with the 'publisherConfirms' property set to TRUE. ]]> @@ -436,7 +437,9 @@ this list can also be simple patterns to be matched against the header names (e. diff --git a/src/reference/docbook/amqp.xml b/src/reference/docbook/amqp.xml index 9dd5e3213c..a473a61228 100644 --- a/src/reference/docbook/amqp.xml +++ b/src/reference/docbook/amqp.xml @@ -41,8 +41,8 @@ regarding Spring's integration with AMQP in general and RabbitMQ in particular. You can find the documentation at: - - http://static.springsource.org/spring-amqp/docs/1.0.x/reference/html/ + + http://static.springsource.org/spring-amqp/reference/html/ @@ -327,8 +327,9 @@ this list can also be simple patterns to be matched against the header names (e. An expression defining correlation data. When provided, this configures the underlying - amqp template to receive publisher confirms. Requires a RabbitTemplate and a - CachingConnectionFactory with publisherConfirms enabled. When a publisher confirm + amqp template to receive publisher confirms. Requires a RabbitTemplate and a + CachingConnectionFactory with the publisherConfirms property + set to true. When a publisher confirm is received, it is written to either the confirm-ack-channel, or the confirm-nack-channel, depending on the confirmation type. The payload of the confirm is the correlation data as defined by this expression and the message will have a header 'amqp_publishConfirm' set to @@ -347,10 +348,18 @@ this list can also be simple patterns to be matched against the header names (e. The channel to which returned messages are sent. When provided, the underlying amqp template - is configured to return undeliverable messages. The message will be constructed from the + is configured to return undeliverable messages to the adapter. The message will be constructed from the data received from amqp, with the following additional headers: amqp_returnReplyCode, amqp_returnReplyText, amqp_returnExchange, amqp_returnRoutingKey. Optional. + + Using a return-channel requires a RabbitTemplate with either + the mandatory or immediate properties set to true, + and a CachingConnectionFactory + with the publisherReturns property set to true. When using multiple + outbound endpoints with returns, a separate RabbitTemplate is needed + for each endpoint. + @@ -468,10 +477,18 @@ this list can also be simple patterns to be matched against the header names (e. The channel to which returned messages are sent. When provided, the underlying amqp template - is configured to return undeliverable messages. The message will be constructed from the + is configured to return undeliverable messages to the gateway. The message will be constructed from the data received from amqp, with the following additional headers: amqp_returnReplyCode, amqp_returnReplyText, amqp_returnExchange, amqp_returnRoutingKey. Optional. + + Using a return-channel requires a RabbitTemplate with either + the mandatory or immediate properties set to true, + and a CachingConnectionFactory + with the publisherReturns property set to true. When using multiple + outbound endpoints with returns, a separate RabbitTemplate is needed + for each endpoint. +