diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdaptersDemo.java b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java
similarity index 95%
rename from org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdaptersDemo.java
rename to org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java
index 4c2acce658..10c6f8a44c 100644
--- a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdaptersDemo.java
+++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdapterDemo.java
@@ -23,7 +23,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
*
* @author Mark Fisher
*/
-public class ChannelAdaptersDemo {
+public class ChannelAdapterDemo {
private final static String[] configFiles = {
"common.xml", "inboundChannelAdapter.xml", "outboundChannelAdapter.xml"
@@ -31,7 +31,7 @@ public class ChannelAdaptersDemo {
public static void main(String[] args) {
- new ClassPathXmlApplicationContext(configFiles, ChannelAdaptersDemo.class);
+ new ClassPathXmlApplicationContext(configFiles, ChannelAdapterDemo.class);
}
}
diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/DemoBean.java b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/DemoBean.java
new file mode 100644
index 0000000000..0e7794f7ee
--- /dev/null
+++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/DemoBean.java
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2002-2008 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.integration.samples.jms;
+
+import org.springframework.integration.annotation.MessageEndpoint;
+import org.springframework.integration.annotation.ServiceActivator;
+
+/**
+ * @author Mark Fisher
+ */
+@MessageEndpoint
+public class DemoBean {
+
+ @ServiceActivator
+ public String upperCase(String input) {
+ return input.toUpperCase();
+ }
+
+}
diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java
new file mode 100644
index 0000000000..e0e7ba94c1
--- /dev/null
+++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/GatewayDemo.java
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2002-2008 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.integration.samples.jms;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+/**
+ * Bootstrap for starting the JMS Gateways.
+ *
+ * @author Mark Fisher
+ */
+public class GatewayDemo {
+
+ private final static String[] configFiles = {
+ "common.xml", "inboundGateway.xml", "outboundGateway.xml"
+ };
+
+
+ public static void main(String[] args) {
+ new ClassPathXmlApplicationContext(configFiles, GatewayDemo.class);
+ }
+
+}
diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundGateway.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundGateway.xml
new file mode 100644
index 0000000000..7d4b25f9e6
--- /dev/null
+++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundGateway.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundGateway.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundGateway.xml
new file mode 100644
index 0000000000..3a7c295556
--- /dev/null
+++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundGateway.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+