diff --git a/spring-integration-samples/cafe/README.txt b/spring-integration-samples/cafe/README.txt index b5e7745a8c..e9a4b04375 100644 --- a/spring-integration-samples/cafe/README.txt +++ b/spring-integration-samples/cafe/README.txt @@ -15,22 +15,22 @@ Instructions for running the CafeDemo sample . . . . . . . . . . . . . System.out I ----------------------- -[2009-07-11 01:43:04.614] task-scheduler-3 System.out I Order #1 -[2009-07-11 01:43:04.614] task-scheduler-3 System.out I Iced MOCHA, 3 shots. -[2009-07-11 01:43:04.614] task-scheduler-3 System.out I Hot LATTE, 2 shots. -[2009-07-11 01:43:04.614] task-scheduler-3 System.out I ----------------------- -[2009-07-11 01:43:04.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #5 for order #5: iced 3 shot MOCHA -[2009-07-11 01:43:05.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #6 for order #6: iced 3 shot MOCHA -[2009-07-11 01:43:06.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #7 for order #7: iced 3 shot MOCHA -[2009-07-11 01:43:07.619] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #8 for order #8: iced 3 shot MOCHA -[2009-07-11 01:43:08.619] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #9 for order #9: iced 3 shot MOCHA -[2009-07-11 01:43:09.614] task-scheduler-3 System.out I task-scheduler-3 prepared hot drink #2 for order #2: hot 2 shot LATTE -[2009-07-11 01:43:09.615] task-scheduler-3 System.out I ----------------------- -[2009-07-11 01:43:09.615] task-scheduler-3 System.out I Order #2 -[2009-07-11 01:43:09.615] task-scheduler-3 System.out I Iced MOCHA, 3 shots. -[2009-07-11 01:43:09.615] task-scheduler-3 System.out I Hot LATTE, 2 shots. -[2009-07-11 01:43:09.615] task-scheduler-3 System.out I ----------------------- -[2009-07-11 01:43:09.620] task-scheduler-2 System.out I task-scheduler-2 prepared cold +[2010-07-11 01:43:04.614] task-scheduler-3 System.out I Order #1 +[2010-07-11 01:43:04.614] task-scheduler-3 System.out I Iced MOCHA, 3 shots. +[2010-07-11 01:43:04.614] task-scheduler-3 System.out I Hot LATTE, 2 shots. +[2010-07-11 01:43:04.614] task-scheduler-3 System.out I ----------------------- +[2010-07-11 01:43:04.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #5 for order #5: iced 3 shot MOCHA +[2010-07-11 01:43:05.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #6 for order #6: iced 3 shot MOCHA +[2010-07-11 01:43:06.618] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #7 for order #7: iced 3 shot MOCHA +[2010-07-11 01:43:07.619] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #8 for order #8: iced 3 shot MOCHA +[2010-07-11 01:43:08.619] task-scheduler-2 System.out I task-scheduler-2 prepared cold drink #9 for order #9: iced 3 shot MOCHA +[2010-07-11 01:43:09.614] task-scheduler-3 System.out I task-scheduler-3 prepared hot drink #2 for order #2: hot 2 shot LATTE +[2010-07-11 01:43:09.615] task-scheduler-3 System.out I ----------------------- +[2010-07-11 01:43:09.615] task-scheduler-3 System.out I Order #2 +[2010-07-11 01:43:09.615] task-scheduler-3 System.out I Iced MOCHA, 3 shots. +[2010-07-11 01:43:09.615] task-scheduler-3 System.out I Hot LATTE, 2 shots. +[2010-07-11 01:43:09.615] task-scheduler-3 System.out I ----------------------- +[2010-07-11 01:43:09.620] task-scheduler-2 System.out I task-scheduler-2 prepared cold . . . . . . . . . . . . . Happy integration :-) \ No newline at end of file diff --git a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Cafe.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Cafe.java index 443d773bc6..d533900a12 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Cafe.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Cafe.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/Delivery.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Delivery.java index d4e1815798..a59fbd430c 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Delivery.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Delivery.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/Drink.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Drink.java index 5cd79c2ea0..504a86586c 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Drink.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Drink.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/DrinkType.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/DrinkType.java index 6406722b29..7e438db424 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/DrinkType.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/DrinkType.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/Order.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Order.java index edf66c4f42..883d9708d4 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Order.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/Order.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/OrderItem.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/OrderItem.java index 3193af490e..0215ff4cc9 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/OrderItem.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/OrderItem.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/Barista.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/Barista.java index 93d1ef6b94..6d72a93c02 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/Barista.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/Barista.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/CafeDemo.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/CafeDemo.java index ad875bc2de..64ade4dbc9 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/CafeDemo.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/CafeDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/DrinkRouter.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/DrinkRouter.java index 1f7cf0f2b1..0dc31ff517 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/DrinkRouter.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/DrinkRouter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/OrderSplitter.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/OrderSplitter.java index 9c8c05e203..a2a6d75682 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/OrderSplitter.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/annotation/OrderSplitter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Barista.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Barista.java index 3589503e36..a1222e8768 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Barista.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Barista.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/CafeDemo.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/CafeDemo.java index 74978758ad..7f00f33cd5 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/CafeDemo.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/CafeDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Waiter.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Waiter.java index 2a6c5ebcdb..e9de2d5af8 100644 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Waiter.java +++ b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/cafe/xml/Waiter.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 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/cafe/src/main/java/org/springframework/integration/samples/osgi/cafe/CafeBundleActivator.java b/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/osgi/cafe/CafeBundleActivator.java deleted file mode 100644 index 1eabec1cb0..0000000000 --- a/spring-integration-samples/cafe/src/main/java/org/springframework/integration/samples/osgi/cafe/CafeBundleActivator.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - * 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.osgi.cafe; - -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; -import org.osgi.framework.Constants; -import org.osgi.framework.ServiceEvent; -import org.osgi.framework.ServiceListener; -import org.osgi.framework.ServiceReference; -import org.springframework.context.ApplicationContext; -import org.springframework.integration.samples.cafe.xml.CafeDemo; - -/** - * An OSGi BundleActivator which will register a ServiceListener to listen for - * an ApplicationContext published event. Once the event is received, the - * CafeDemo will be executed. - * - * @author Oleg Zhurakousky - * @since 1.0.3 - */ -public class CafeBundleActivator implements BundleActivator, ServiceListener{ - - private BundleContext context; - - public void start(BundleContext context) throws Exception { - this.context = context; - context.addServiceListener(this); - } - - public void stop(BundleContext context) throws Exception {} - - public void serviceChanged(ServiceEvent serviceEvent) { - ServiceReference sr = serviceEvent.getServiceReference(); - if (context.getBundle().getSymbolicName().equals(sr.getProperty(Constants.BUNDLE_SYMBOLICNAME))) { - final ApplicationContext applicationContext = (ApplicationContext) context.getService(sr); - ExecutorService executor = Executors.newCachedThreadPool(); - executor.execute(new Runnable() { - public void run() { - new CafeDemo().performDemo(applicationContext, 20); - } - }); - } - } - -} diff --git a/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java b/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java index 5a84e01a1c..7f77fb4e77 100644 --- a/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java +++ b/spring-integration-samples/errorhandling/src/main/java/org/springframework/integration/samples/errorhandling/PartyDemo.java @@ -1,5 +1,5 @@ /** - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/filecopy/src/main/java/org/springframework/integration/samples/filecopy/BinaryFileCopyDemo.java b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/BinaryFileCopyDemo.java index 1756ace5b3..21b1c9b892 100644 --- a/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/BinaryFileCopyDemo.java +++ b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/BinaryFileCopyDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileBasedFileCopyDemo.java b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileBasedFileCopyDemo.java index 9bc801010f..6820938cc1 100644 --- a/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileBasedFileCopyDemo.java +++ b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileBasedFileCopyDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileCopyDemoCommon.java b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileCopyDemoCommon.java index 3d31bb2e20..72fb0187c1 100644 --- a/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileCopyDemoCommon.java +++ b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/FileCopyDemoCommon.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/filecopy/src/main/java/org/springframework/integration/samples/filecopy/Handler.java b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/Handler.java index d7cc5c476b..8fb30246cc 100644 --- a/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/Handler.java +++ b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/Handler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/filecopy/src/main/java/org/springframework/integration/samples/filecopy/TextFileCopyDemo.java b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/TextFileCopyDemo.java index d5ae560ed4..67d09dec7a 100644 --- a/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/TextFileCopyDemo.java +++ b/spring-integration-samples/filecopy/src/main/java/org/springframework/integration/samples/filecopy/TextFileCopyDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/README.txt b/spring-integration-samples/jms/README.txt new file mode 100644 index 0000000000..4a60dcf3c7 --- /dev/null +++ b/spring-integration-samples/jms/README.txt @@ -0,0 +1,9 @@ +Instructions for running the HelloWorldDemo sample +------------------------------------------------------------------------------- +1. See README.txt in the parent directory. + +This demo consists of two samples, ChannelAdapterDemo and GatewayDemo. +PLease see the corresponding javadocs for more details on each sample. + + +Happy integration :-) diff --git a/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ActiveMqTestUtils.java b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ActiveMqTestUtils.java new file mode 100644 index 0000000000..02f978f24f --- /dev/null +++ b/spring-integration-samples/jms/src/main/java/org/springframework/integration/samples/jms/ActiveMqTestUtils.java @@ -0,0 +1,46 @@ +/* + * Copyright 2002-2010 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 java.io.File; + +/** + * @author Oleg Zhurakousky + * + */ +public class ActiveMqTestUtils { + + public static void prepare() { + System.out.println("####### Refreshing ActiveMq ########"); + File activeMqTempDir = new File("activemq-data"); + deleteDir(activeMqTempDir); + + } + /* + * + */ + private static void deleteDir(File directory){ + if (directory.exists()){ + String[] children = directory.list(); + if (children != null){ + for (int i=0; i < children.length; i++) { + deleteDir(new File(directory, children[i])); + } + } + } + directory.delete(); + } +} 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 a8e8b9e1c9..589f90f4d1 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-2009 the original author or authors. + * Copyright 2002-2010 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. @@ -37,6 +37,7 @@ public class ChannelAdapterDemo { public static void main(String[] args) { + ActiveMqTestUtils.prepare(); new ClassPathXmlApplicationContext(configFiles, ChannelAdapterDemo.class); } 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 1b8df69bc4..b19127a7af 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-2009 the original author or authors. + * Copyright 2002-2010 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 1cf4524d06..35a6022eaf 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-2009 the original author or authors. + * Copyright 2002-2010 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. @@ -40,6 +40,7 @@ public class GatewayDemo { public static void main(String[] args) { + ActiveMqTestUtils.prepare(); new ClassPathXmlApplicationContext(configFiles, GatewayDemo.class); } diff --git a/spring-integration-samples/quote/src/main/java/org/springframework/integration/samples/quote/QuoteDemo.java b/spring-integration-samples/quote/src/main/java/org/springframework/integration/samples/quote/QuoteDemo.java index 80e91ab87d..c868dfc545 100644 --- a/spring-integration-samples/quote/src/main/java/org/springframework/integration/samples/quote/QuoteDemo.java +++ b/spring-integration-samples/quote/src/main/java/org/springframework/integration/samples/quote/QuoteDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/ws-inbound-gateway/.settings/org.eclipse.wst.common.component b/spring-integration-samples/ws-inbound-gateway/.settings/org.eclipse.wst.common.component index 25762de536..860f1e3b6f 100644 --- a/spring-integration-samples/ws-inbound-gateway/.settings/org.eclipse.wst.common.component +++ b/spring-integration-samples/ws-inbound-gateway/.settings/org.eclipse.wst.common.component @@ -1,15 +1,9 @@ - - - uses - - - uses - - + + diff --git a/spring-integration-samples/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemo.java b/spring-integration-samples/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemo.java index cf48e6934c..84923a86ce 100644 --- a/spring-integration-samples/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemo.java +++ b/spring-integration-samples/ws-outbound-gateway/src/main/java/org/springframework/integration/samples/ws/WebServiceDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/xml/src/main/java/org/springframework/integration/samples/xml/BookOrderProcessingSample.java b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/BookOrderProcessingSample.java index 2a49334cc3..774290a499 100644 --- a/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/BookOrderProcessingSample.java +++ b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/BookOrderProcessingSample.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/xml/src/main/java/org/springframework/integration/samples/xml/ExternalResupply.java b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/ExternalResupply.java index c8ca802412..3923057eaf 100644 --- a/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/ExternalResupply.java +++ b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/ExternalResupply.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/xml/src/main/java/org/springframework/integration/samples/xml/StockChecker.java b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/StockChecker.java index 2891551308..f481f1a151 100644 --- a/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/StockChecker.java +++ b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/StockChecker.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/xml/src/main/java/org/springframework/integration/samples/xml/WarehouseDispatch.java b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/WarehouseDispatch.java index 4409a8b91a..832f8f7a79 100644 --- a/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/WarehouseDispatch.java +++ b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/WarehouseDispatch.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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/xml/src/main/java/org/springframework/integration/samples/xml/XmlUtil.java b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/XmlUtil.java index b341b12219..c703523a08 100644 --- a/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/XmlUtil.java +++ b/spring-integration-samples/xml/src/main/java/org/springframework/integration/samples/xml/XmlUtil.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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.