From a2ebf9fea5749aeb952e974475b52275d7974dde Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Wed, 26 Nov 2008 06:10:16 +0000 Subject: [PATCH] Added note on channel configuration within annotations - specifically pointed out that the inputChannel must be a SubscribableChannel in such a case --- spring-integration-reference/src/configuration.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spring-integration-reference/src/configuration.xml b/spring-integration-reference/src/configuration.xml index d853368134..d31e17e892 100644 --- a/spring-integration-reference/src/configuration.xml +++ b/spring-integration-reference/src/configuration.xml @@ -252,6 +252,17 @@ public class FooService { location (and besides the XML configuration is not very verbose). If you do prefer to provide channels with the annotations however, you just need to enable a BeanPostProcessor. The following element should be added: ]]> + + When configuring the "inputChannel" and "outputChannel" with annotations, the "inputChannel" + must be a reference to a SubscribableChannel instance. + Otherwise, it would be necessary to also provide the full poller configuration via annotations, and those + settings (e.g. the trigger for scheduling the poller) should be externalized rather than hard-coded within + an annotation. If the input channel that you want to receive Messages from is indeed a + PollableChannel instance, one option to consider is the Messaging Bridge. + Spring Integration's "bridge" element can be used to connect a PollableChannel directly to a + SubscribableChannel. Then, the polling metadata is externally configured, but the annotation option is still + available. For more detail see . +