Replaced <annotation-driven/> in samples with "enable-annotations" on the <message-bus/> element (INT-401).

This commit is contained in:
Mark Fisher
2008-10-08 00:59:02 +00:00
parent 221f6167a5
commit 155e84f4ce
5 changed files with 5 additions and 9 deletions

View File

@@ -13,8 +13,7 @@
http://www.springframework.org/schema/integration/stream
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd">
<message-bus/>
<annotation-driven/>
<message-bus enable-annotations="true"/>
<context:component-scan base-package="org.springframework.integration.samples.cafe.annotation"/>

View File

@@ -38,6 +38,7 @@ public class HelloWorldDemo {
PollableChannel outputChannel = (PollableChannel) channelRegistry.lookupChannel("outputChannel");
inputChannel.send(new StringMessage("World"));
System.out.println(outputChannel.receive().getPayload());
context.stop();
}
}

View File

@@ -7,8 +7,7 @@
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd">
<message-bus/>
<annotation-driven/>
<message-bus enable-annotations="true"/>
<channel id="even"/>
<channel id="odd"/>

View File

@@ -7,8 +7,7 @@
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd">
<message-bus/>
<annotation-driven/>
<message-bus enable-annotations="true"/>
<channel id="even"/>
<channel id="odd"/>

View File

@@ -10,9 +10,7 @@
http://www.springframework.org/schema/integration/stream
http://www.springframework.org/schema/integration/stream/spring-integration-stream-1.0.xsd">
<message-bus/>
<annotation-driven/>
<message-bus enable-annotations="true"/>
<beans:bean class="org.springframework.integration.samples.quote.TickerStream"/>