From bb248119d39673a8cc84f08c20780c44a78bb3d8 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Tue, 8 Jan 2008 02:11:17 +0000 Subject: [PATCH] Refactored to use the new payload-only constructor. --- .../integration/samples/helloworld/HelloWorldDemo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java b/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java index 60053ea54e..43571af442 100644 --- a/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java +++ b/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java @@ -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(); }