diff --git a/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloService.java b/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloService.java index b09b1c6fbd..e124c5c35b 100644 --- a/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloService.java +++ b/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/HelloService.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 163939a2af..4cb5e2dc31 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 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,16 @@ import org.springframework.integration.core.MessageChannel; import org.springframework.integration.message.StringMessage; /** - * Demonstrates a basic message endpoint. + * Demonstrates a basic Message Endpoint that simply prepends a greeting + * ("Hello ") to an inbound String payload from a Message. This is a very + * low-level example, using Message Channels directly for both input and + * output. Notice that the output channel has a queue sub-element. It is + * therefore a PollableChannel and its consumers must invoke receive() as + * demonstrated below. The {@link BeanFactoryChannelResolver} is used here + * rather than performing a generic dependency lookup from the context. + *

+ * View the configuration of the channels and the endpoint (a <service-activator/> + * element) in 'helloWorldDemo.xml' within this same package. * * @author Mark Fisher */ diff --git a/spring-integration-samples/helloworld/src/main/resources/org/springframework/integration/samples/helloworld/helloWorldDemo.xml b/spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml similarity index 100% rename from spring-integration-samples/helloworld/src/main/resources/org/springframework/integration/samples/helloworld/helloWorldDemo.xml rename to spring-integration-samples/helloworld/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml