Replaced <annotation-driven/> in samples with "enable-annotations" on the <message-bus/> element (INT-401).
This commit is contained in:
@@ -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"/>
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user