PollingDispatchers are configured from the <poller/> element. The <schedule/> element has been removed. Instead the 'period' attribute is now available on <poller/>.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
input-channel="testChannel"
|
||||
ref="testHandler"
|
||||
output-channel="replyChannel">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
<interceptors>
|
||||
<beans:bean class="org.springframework.integration.config.TestPreSendInterceptor"/>
|
||||
<beans:bean class="org.springframework.integration.config.TestAroundSendEndpointInterceptor"/>
|
||||
@@ -28,7 +28,7 @@
|
||||
input-channel="testChannel"
|
||||
ref="testHandler"
|
||||
output-channel="replyChannel">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
<interceptors>
|
||||
<ref bean="preInterceptor"/>
|
||||
<ref bean="aroundInterceptor"/>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</handler-chain>
|
||||
|
||||
<service-activator input-channel="testChannel" ref="chain" output-channel="replyChannel">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
</service-activator>
|
||||
|
||||
<beans:bean id="handler1" class="org.springframework.integration.config.TestConcatenatingHandler">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<service-activator id="endpoint" input-channel="testChannel"
|
||||
ref="testHandler" selector="typeSelector">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
</service-activator>
|
||||
|
||||
<beans:bean id="typeSelector" class="org.springframework.integration.message.selector.PayloadTypeSelector">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<queue-channel id="testChannel" capacity="50"/>
|
||||
|
||||
<service-activator input-channel="testChannel" ref="testBean" method="store">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
</service-activator>
|
||||
|
||||
<beans:bean id="testBean" class="org.springframework.integration.config.TestBean">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<queue-channel id="testChannel" capacity="50"/>
|
||||
|
||||
<service-activator input-channel="testChannel" ref="testHandler">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
</service-activator>
|
||||
|
||||
<beans:bean id="testHandler" class="org.springframework.integration.config.TestHandler">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="10000"/>
|
||||
<poller period="10000"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="REQUIRED"/>
|
||||
</interceptors>
|
||||
@@ -28,7 +28,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="10000"/>
|
||||
<poller period="10000"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="REQUIRES_NEW"/>
|
||||
</interceptors>
|
||||
@@ -39,7 +39,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="10000"/>
|
||||
<poller period="10000"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="SUPPORTS"/>
|
||||
</interceptors>
|
||||
@@ -50,7 +50,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="10000"/>
|
||||
<poller period="10000"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="NOT_SUPPORTED"/>
|
||||
</interceptors>
|
||||
@@ -61,7 +61,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="10000"/>
|
||||
<poller period="10000"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="MANDATORY"/>
|
||||
</interceptors>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
ref="testBean"
|
||||
method="bad"
|
||||
output-channel="output">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager"/>
|
||||
</interceptors>
|
||||
@@ -27,7 +27,7 @@
|
||||
ref="testBean"
|
||||
method="good"
|
||||
output-channel="output">
|
||||
<schedule period="100"/>
|
||||
<poller period="100"/>
|
||||
<interceptors>
|
||||
<transaction-interceptor transaction-manager="txManager" propagation="REQUIRED"/>
|
||||
</interceptors>
|
||||
|
||||
Reference in New Issue
Block a user