diff --git a/spring-integration-reference/src/channel-adapter.xml b/spring-integration-reference/src/channel-adapter.xml index 110e3c8359..78bcd042c1 100644 --- a/spring-integration-reference/src/channel-adapter.xml +++ b/spring-integration-reference/src/channel-adapter.xml @@ -44,7 +44,7 @@
The <outbound-channel-adapter/> element - An "outbound-channel-adapter" element can also connect a MessageChannel to any + An "outbound-channel-adapter" element can also connect a MessageChannel to any POJO consumer method that should be invoked with the payload of Messages sent to that channel. ]]> If the channel being adapted is a PollableChannel, provide a poller sub-element: @@ -52,8 +52,26 @@ ]]> ]]>]]> + + +]]> + + Using a "ref" attribute is generally recommended if the POJO consumer implementation can be reused + in other <outbound-channel-adapter> definitions. However if the consumer implementation + should be scoped to a single definition of the <outbound-channel-adapter>, you can define it as inner bean: + + + ]]> +]]> + + + + Using both the "ref" attribute and an inner handler definition in the same <outbound-channel-adapter> + configuration is not allowed, as it creates an ambiguous condition and will result in an Exception being thrown. + + Any Channel Adapter can be created without a "channel" reference in which case it will implicitly create an instance of DirectChannel. The created channel's name will match the "id" attribute