INT-1715 fixed poller schema definition to allow 'ref' attribute on inner-pollers definitions used in non-core schemas

This commit is contained in:
Oleg Zhurakousky
2011-01-04 13:12:49 -05:00
parent 454f349163
commit d9263ea92a
7 changed files with 49 additions and 22 deletions

View File

@@ -197,7 +197,11 @@ consumer.setTransactionManager(txManager);</programlisting>
output-channel="output">
<poller ref="weekdayPoller"/>
</transformer>]]></programlisting>
In fact, to simplify the configuration, you can define a global default poller. A single top-level poller within
<note>
The "ref" attribute is only allowed on the inner-poller definitions. Defining his attribute on the top-level
poller will result in configuration exception thrown during initialization of Application Context
</note>
In fact, to simplify the configuration even further, you can define a global default poller. A single top-level poller within
an ApplicationContext may have the <code>default</code> attribute with a value of "true". In that case, any
endpoint with a PollableChannel for its input-channel that is defined within the same ApplicationContext and has
no explicitly configured 'poller' sub-element will use that default.