From e9b86dc087de6edddf313ff7b29842d6b543c99e Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 30 Aug 2010 20:58:48 +0000 Subject: [PATCH] INT-1389 removed all dependencies on StringMessage from Hello World sample --- .../integration/samples/helloworld/HelloWorldDemo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java b/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java index 0df1084f39..8dcc2029e3 100644 --- a/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java +++ b/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloWorldDemo.java @@ -18,9 +18,9 @@ package org.springframework.integration.samples.helloworld; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; +import org.springframework.integration.core.GenericMessage; import org.springframework.integration.core.MessageChannel; import org.springframework.integration.core.PollableChannel; -import org.springframework.integration.core.StringMessage; /** * Demonstrates a basic Message Endpoint that simply prepends a greeting @@ -42,7 +42,7 @@ public class HelloWorldDemo { AbstractApplicationContext context = new ClassPathXmlApplicationContext("helloWorldDemo.xml", HelloWorldDemo.class); MessageChannel inputChannel = context.getBean("inputChannel", MessageChannel.class); PollableChannel outputChannel = context.getBean("outputChannel", PollableChannel.class); - inputChannel.send(new StringMessage("World")); + inputChannel.send(new GenericMessage("World")); System.out.println("==> HelloWorldDemo: " + outputChannel.receive(0).getPayload()); }