From a9c538b0dd78c59d175f8d877dcc4be60637fd3c Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Wed, 8 Jul 2009 23:34:31 +0000 Subject: [PATCH] INT-706 moved config files to the same directory as the corresponding demo classes and added descriptions --- .../integration/samples/jms/ChannelAdapterDemo.java | 10 ++++++++-- .../integration/samples/jms/DemoBean.java | 2 +- .../integration/samples/jms/GatewayDemo.java | 13 +++++++++++-- .../integration/samples/jms/common.xml | 0 .../samples/jms/inboundChannelAdapter.xml | 0 .../integration/samples/jms/inboundGateway.xml | 0 .../samples/jms/outboundChannelAdapter.xml | 0 .../integration/samples/jms/outboundGateway.xml | 0 8 files changed, 20 insertions(+), 5 deletions(-) rename spring-integration-samples/jms/src/main/{resources => java}/org/springframework/integration/samples/jms/common.xml (100%) rename spring-integration-samples/jms/src/main/{resources => java}/org/springframework/integration/samples/jms/inboundChannelAdapter.xml (100%) rename spring-integration-samples/jms/src/main/{resources => java}/org/springframework/integration/samples/jms/inboundGateway.xml (100%) rename spring-integration-samples/jms/src/main/{resources => java}/org/springframework/integration/samples/jms/outboundChannelAdapter.xml (100%) rename spring-integration-samples/jms/src/main/{resources => java}/org/springframework/integration/samples/jms/outboundGateway.xml (100%) diff --git a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java index 10c6f8a44c..a8e8b9e1c9 100644 --- a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java +++ b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.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. @@ -19,7 +19,13 @@ package org.springframework.integration.samples.jms; import org.springframework.context.support.ClassPathXmlApplicationContext; /** - * Bootstrap for starting the JMS Channel Adapters. + * A simple bootstrap main() method for starting a pair of JMS Channel + * Adapters. Text entered in the console will go through an outbound + * JMS Channel Adapter from which it is sent to a JMS Destination. + * An inbound JMS Channel Adapter is listening to that same JMS + * Destination and will echo the result in the console. + *

+ * See the configuration in the three XML files that are referenced below. * * @author Mark Fisher */ diff --git a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/DemoBean.java b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/DemoBean.java index 0e7794f7ee..1b8df69bc4 100644 --- a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/DemoBean.java +++ b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/DemoBean.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/jms/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java index e0e7ba94c1..1cf4524d06 100644 --- a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java +++ b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.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. @@ -19,7 +19,16 @@ package org.springframework.integration.samples.jms; import org.springframework.context.support.ClassPathXmlApplicationContext; /** - * Bootstrap for starting the JMS Gateways. + * A simple bootstrap main() method for starting a pair of JMS Gateways. + * Text entered in the console will go through an outbound JMS Gateway from + * which it is sent to a JMS Destination. An inbound JMS Gateway is listening + * to that same JMS Destination and will send the text to another Spring + * Integration channel where it is handled by a service that simply converts + * the text to upper case. The upper-case result is then sent in a response + * message over JMS so that the outbound Gateway receives it as the reply to + * its original request. At that point, the text is logged to the console. + *

+ * See the configuration in the three XML files that are referenced below. * * @author Mark Fisher */ diff --git a/spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/common.xml b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/common.xml similarity index 100% rename from spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/common.xml rename to spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/common.xml diff --git a/spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/inboundChannelAdapter.xml b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml similarity index 100% rename from spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/inboundChannelAdapter.xml rename to spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml diff --git a/spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/inboundGateway.xml b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/inboundGateway.xml similarity index 100% rename from spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/inboundGateway.xml rename to spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/inboundGateway.xml diff --git a/spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/outboundChannelAdapter.xml b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml similarity index 100% rename from spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/outboundChannelAdapter.xml rename to spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml diff --git a/spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/outboundGateway.xml b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/outboundGateway.xml similarity index 100% rename from spring-integration-samples/jms/src/main/resources/org/springframework/integration/samples/jms/outboundGateway.xml rename to spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/outboundGateway.xml