Modified demos to replace 'target-endpoint' with 'channel-adapter' elements.
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
|
||||
<channel id="channel2"/>
|
||||
|
||||
<source-endpoint source="fileSource" channel="channel1">
|
||||
<channel-adapter source="fileSource" channel="channel1">
|
||||
<schedule period="10000"/>
|
||||
</source-endpoint>
|
||||
</channel-adapter>
|
||||
|
||||
<handler-endpoint input-channel="channel1" output-channel="channel2"
|
||||
handler="exclaimer" method="exclaim"/>
|
||||
|
||||
<target-endpoint input-channel="channel2" target="fileTarget"/>
|
||||
<channel-adapter channel="channel2" target="fileTarget"/>
|
||||
|
||||
<file-target id="fileTarget" directory="${java.io.tmpdir}/spring-integration-samples/output"/>
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<beans:bean class="org.springframework.integration.samples.quote.QuoteService"/>
|
||||
|
||||
<target-endpoint input-channel="quotes" target="stdout"/>
|
||||
<channel-adapter channel="quotes" target="stdout"/>
|
||||
|
||||
<console-target id="stdout" append-newline="true"/>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
uri="http://www.w3schools.com/webservices/tempconvert.asmx"/>
|
||||
|
||||
<!-- The response from the service is logged to the console. -->
|
||||
<target-endpoint input-channel="celsiusChannel" target="console"/>
|
||||
<channel-adapter channel="celsiusChannel" target="console"/>
|
||||
|
||||
<console-target id="console"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user