From 8a62ae5ccb4b674a9824f98ddbd1081f2787d737 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 17 Oct 2008 19:44:34 +0000 Subject: [PATCH] Added JMS Channel Adapter sample (INT-430). --- .../.classpath | 3 ++ .../ivy.xml | 2 + .../samples/jms/ChannelAdaptersDemo.java | 37 +++++++++++++++++++ .../integration/samples/jms/common.xml | 24 ++++++++++++ .../samples/jms/inboundChannelAdapter.xml | 22 +++++++++++ .../samples/jms/outboundChannelAdapter.xml | 22 +++++++++++ 6 files changed, 110 insertions(+) create mode 100644 org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdaptersDemo.java create mode 100644 org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/common.xml create mode 100644 org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml create mode 100644 org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml diff --git a/org.springframework.integration.samples/.classpath b/org.springframework.integration.samples/.classpath index b0f8ca23c0..5d0cd99579 100644 --- a/org.springframework.integration.samples/.classpath +++ b/org.springframework.integration.samples/.classpath @@ -5,7 +5,9 @@ + + @@ -18,6 +20,7 @@ + diff --git a/org.springframework.integration.samples/ivy.xml b/org.springframework.integration.samples/ivy.xml index fe74799a76..105383a931 100644 --- a/org.springframework.integration.samples/ivy.xml +++ b/org.springframework.integration.samples/ivy.xml @@ -21,6 +21,8 @@ + + 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/ChannelAdaptersDemo.java new file mode 100644 index 0000000000..4c2acce658 --- /dev/null +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/ChannelAdaptersDemo.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 Channel Adapters. + * + * @author Mark Fisher + */ +public class ChannelAdaptersDemo { + + private final static String[] configFiles = { + "common.xml", "inboundChannelAdapter.xml", "outboundChannelAdapter.xml" + }; + + + public static void main(String[] args) { + new ClassPathXmlApplicationContext(configFiles, ChannelAdaptersDemo.class); + } + +} diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/common.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/common.xml new file mode 100644 index 0000000000..1ea64fe9bb --- /dev/null +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/common.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml new file mode 100644 index 0000000000..13bf9eeed6 --- /dev/null +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/inboundChannelAdapter.xml @@ -0,0 +1,22 @@ + + + + + + + + + + diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml new file mode 100644 index 0000000000..0982a2a8c8 --- /dev/null +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/jms/outboundChannelAdapter.xml @@ -0,0 +1,22 @@ + + + + + + + + + +