Modified demos to replace 'target-endpoint' with 'channel-adapter' elements.

This commit is contained in:
Mark Fisher
2008-07-05 20:14:42 +00:00
parent 1a6448b3d8
commit 3747de3c7a
3 changed files with 5 additions and 5 deletions

View File

@@ -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"/>

View File

@@ -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"/>

View File

@@ -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"/>