Refactored to use the new payload-only constructor.

This commit is contained in:
Mark Fisher
2008-01-08 02:11:17 +00:00
parent 060dd9109f
commit bb248119d3

View File

@@ -36,7 +36,7 @@ public class HelloWorldDemo {
ChannelRegistry channelRegistry = (ChannelRegistry) context.getBean(MessageBusParser.MESSAGE_BUS_BEAN_NAME);
MessageChannel inputChannel = channelRegistry.lookupChannel("inputChannel");
MessageChannel outputChannel = channelRegistry.lookupChannel("outputChannel");
inputChannel.send(new StringMessage(1, "World"));
inputChannel.send(new StringMessage("World"));
System.out.println(outputChannel.receive().getPayload());
context.stop();
}