diff --git a/build.gradle b/build.gradle
index 3e24f48d2c..7ce68314ff 100644
--- a/build.gradle
+++ b/build.gradle
@@ -121,12 +121,12 @@ configure(javaprojects) {
junitVersion = '4.8.2'
log4jVersion = '1.2.12'
mockitoVersion = '1.8.4'
- //springVersion = '3.1.0.M2'
- springVersion = '3.0.6.BUILD-SNAPSHOT'
+ springVersion = '3.1.0.M2'
springAmqpVersion = '1.0.0.BUILD-SNAPSHOT'
springDataMongoVersion = '1.0.0.BUILD-SNAPSHOT'
springDataCommonsVersion = '1.2.0.BUILD-SNAPSHOT'
springDataRedisVersion = '1.0.0.BUILD-SNAPSHOT'
+ springGemfireVersion = '1.0.1.RELEASE'
springSecurityVersion = '3.0.5.RELEASE'
springWsVersion = '2.0.2.RELEASE'
@@ -233,6 +233,19 @@ project('spring-integration-ftp') {
}
}
+project('spring-integration-gemfire') {
+ description = 'Spring Integration GemFire Support'
+ dependencies {
+ compile project(":spring-integration-core")
+ compile "org.springframework:spring-context:$springVersion"
+ compile "org.springframework.data.gemfire:spring-gemfire:$springGemfireVersion"
+ testCompile project(":spring-integration-stream")
+ }
+ repositories {
+ mavenRepo urls: 'http://dist.gemstone.com/maven/release' // for gemfire
+ }
+}
+
project('spring-integration-groovy') {
description = 'Spring Integration Groovy Support'
dependencies {
diff --git a/pom.xml b/pom.xml
index d2596e7b24..76076b0006 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,6 +14,7 @@
spring-integration-feed
spring-integration-file
spring-integration-ftp
+ spring-integration-gemfire
spring-integration-groovy
spring-integration-http
spring-integration-ip
diff --git a/settings.gradle b/settings.gradle
index b21f690c05..dcf01a2a5b 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -23,6 +23,7 @@ include 'spring-integration-event'
include 'spring-integration-feed'
include 'spring-integration-file'
include 'spring-integration-ftp'
+include 'spring-integration-gemfire'
include 'spring-integration-groovy'
include 'spring-integration-http'
include 'spring-integration-ip'
diff --git a/spring-integration-amqp/pom.xml b/spring-integration-amqp/pom.xml
index 62ac603b39..f99112709f 100644
--- a/spring-integration-amqp/pom.xml
+++ b/spring-integration-amqp/pom.xml
@@ -100,41 +100,23 @@
-
- org.springframework.integration
- spring-integration-stream
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ spring-test
+ 3.1.0.M2
+ test
org.springframework.integration
@@ -142,6 +124,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-stream
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-core/pom.xml b/spring-integration-core/pom.xml
index 5d99850fa7..f610bb7282 100644
--- a/spring-integration-core/pom.xml
+++ b/spring-integration-core/pom.xml
@@ -102,28 +102,16 @@
org.springframework
- spring-aop
- 3.0.6.BUILD-SNAPSHOT
+ spring-context
+ 3.1.0.M2
compile
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.aspectj
aspectjweaver
1.6.8
test
-
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
-
cglib
cglib-nodep
@@ -142,6 +130,12 @@
2.3
test
+
+ org.springframework
+ spring-aop
+ 3.1.0.M2
+ compile
+
org.easymock
easymockclassextension
@@ -155,6 +149,12 @@
compile
true
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
org.hamcrest
hamcrest-all
@@ -167,19 +167,19 @@
1.8.4
test
+
+ org.springframework
+ spring-tx
+ 3.1.0.M2
+ compile
+ true
+
org.aspectj
aspectjrt
1.6.8
test
-
- org.springframework
- spring-tx
- 3.0.6.BUILD-SNAPSHOT
- compile
- true
-
junit
junit-dep
diff --git a/spring-integration-event/pom.xml b/spring-integration-event/pom.xml
index 41230dcf0f..de503bf3db 100644
--- a/spring-integration-event/pom.xml
+++ b/spring-integration-event/pom.xml
@@ -100,41 +100,23 @@
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ spring-test
+ 3.1.0.M2
+ test
org.springframework.integration
@@ -142,6 +124,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-feed/pom.xml b/spring-integration-feed/pom.xml
index 3d69f94733..ba456593cc 100644
--- a/spring-integration-feed/pom.xml
+++ b/spring-integration-feed/pom.xml
@@ -102,9 +102,9 @@
org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
+ spring-context
+ 3.1.0.M2
+ compile
net.java.dev.rome
@@ -118,12 +118,6 @@
-
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
-
cglib
cglib-nodep
@@ -136,12 +130,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -154,6 +142,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -166,12 +172,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
net.java.dev.rome
rome
diff --git a/spring-integration-file/pom.xml b/spring-integration-file/pom.xml
index 36e6b5471f..7e1578f79b 100644
--- a/spring-integration-file/pom.xml
+++ b/spring-integration-file/pom.xml
@@ -100,41 +100,23 @@
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ spring-test
+ 3.1.0.M2
+ test
org.springframework.integration
@@ -142,6 +124,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-ftp/pom.xml b/spring-integration-ftp/pom.xml
index 826c2d6679..934b19299b 100644
--- a/spring-integration-ftp/pom.xml
+++ b/spring-integration-ftp/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.integration
spring-integration-file
@@ -124,12 +118,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
commons-net
commons-net
@@ -148,6 +136,18 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework
+ spring-context-support
+ 3.1.0.M2
+ compile
+
javax.activation
activation
@@ -155,18 +155,18 @@
compile
true
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework
- spring-context-support
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
diff --git a/spring-integration-gemfire/pom.xml b/spring-integration-gemfire/pom.xml
new file mode 100644
index 0000000000..565db60ce4
--- /dev/null
+++ b/spring-integration-gemfire/pom.xml
@@ -0,0 +1,183 @@
+
+
+ 4.0.0
+ org.springframework.integration
+ spring-integration-gemfire
+ 2.1.0.BUILD-SNAPSHOT
+ Spring Integration GemFire Support
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+ repo
+
+
+
+
+
+ src/main/java
+
+ **/*
+
+
+ **/*.java
+
+
+
+ src/main/resources
+
+ **/*
+
+
+
+
+
+ src/test/java
+
+ **/*
+
+
+ **/*.java
+
+
+
+ src/test/resources
+
+ **/*
+
+
+
+
+
+ maven-compiler-plugin
+
+ 1.5
+ 1.5
+
+
+
+ maven-surefire-plugin
+
+
+ **/*Tests.java
+
+
+ **/*Abstract*.java
+
+
+
+
+
+
+
+ http://dist.gemstone.com/maven/release
+ http://dist.gemstone.com/maven/release
+
+
+ http://download.java.net/maven/2
+ http://download.java.net/maven/2
+
+
+ http://maven.springframework.org/milestone
+ http://maven.springframework.org/milestone
+
+
+ http://maven.springframework.org/release
+ http://maven.springframework.org/release
+
+
+ http://maven.springframework.org/snapshot
+ http://maven.springframework.org/snapshot
+
+
+ http://repository.springsource.com/maven/bundles/external
+ http://repository.springsource.com/maven/bundles/external
+
+
+ http://repository.springsource.com/maven/bundles/milestone
+ http://repository.springsource.com/maven/bundles/milestone
+
+
+ http://repository.springsource.com/maven/bundles/release
+ http://repository.springsource.com/maven/bundles/release
+
+
+
+
+ org.easymock
+ easymock
+ 2.3
+ test
+
+
+ org.easymock
+ easymockclassextension
+ 2.3
+ test
+
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.data.gemfire
+ spring-gemfire
+ 1.0.1.RELEASE
+ compile
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-stream
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
+
+ org.mockito
+ mockito-all
+ 1.8.4
+ test
+
+
+ log4j
+ log4j
+ 1.2.12
+ test
+
+
+ cglib
+ cglib-nodep
+ 2.2
+ test
+
+
+ junit
+ junit-dep
+ 4.8.2
+ test
+
+
+
+ UTF8
+
+
diff --git a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/CacheListeningMessageProducer.java b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/CacheListeningMessageProducer.java
new file mode 100644
index 0000000000..8890082244
--- /dev/null
+++ b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/CacheListeningMessageProducer.java
@@ -0,0 +1,147 @@
+/*
+ * Copyright 2002-2011 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.gemfire.inbound;
+
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import org.springframework.expression.Expression;
+import org.springframework.expression.spel.standard.SpelExpressionParser;
+import org.springframework.integration.endpoint.MessageProducerSupport;
+import org.springframework.integration.support.MessageBuilder;
+import org.springframework.util.Assert;
+
+import com.gemstone.gemfire.cache.CacheListener;
+import com.gemstone.gemfire.cache.EntryEvent;
+import com.gemstone.gemfire.cache.Region;
+import com.gemstone.gemfire.cache.util.CacheListenerAdapter;
+
+/**
+ * An inbound endpoint that listens to a GemFire region for events and then publishes Messages to
+ * a channel. The default supported event types are CREATED and UPDATED. See the {@link EventType}
+ * enum for all options. A SpEL expression may be provided to generate a Message payload by
+ * evaluating that expression against the {@link EntryEvent} instance as the root object. If no
+ * payloadExpression is provided, the {@link EntryEvent} itself will be the payload.
+ *
+ * @author Mark Fisher
+ * @since 2.1
+ */
+@SuppressWarnings({"rawtypes", "unchecked"})
+public class CacheListeningMessageProducer extends MessageProducerSupport {
+
+ private final Log logger = LogFactory.getLog(this.getClass());
+
+ private final Region region;
+
+ private final CacheListener, ?> listener;
+
+ private volatile Set supportedEventTypes =
+ new HashSet(Arrays.asList(EventType.CREATED, EventType.UPDATED));
+
+ private volatile Expression payloadExpression;
+
+ private final SpelExpressionParser parser = new SpelExpressionParser();
+
+
+ public CacheListeningMessageProducer(Region, ?> region) {
+ Assert.notNull(region, "region must not be null");
+ this.region = region;
+ this.listener = new MessageProducingCacheListener();
+ }
+
+
+ public void setSupportedEventTypes(EventType... eventTypes) {
+ Assert.notEmpty(eventTypes, "eventTypes must not be empty");
+ this.supportedEventTypes = new HashSet(Arrays.asList(eventTypes));
+ }
+
+ public void setPayloadExpression(String payloadExpression) {
+ if (payloadExpression == null) {
+ this.payloadExpression = null;
+ }
+ else {
+ this.payloadExpression = this.parser.parseExpression(payloadExpression);
+ }
+ }
+
+ @Override
+ protected void doStart() {
+ if (logger.isInfoEnabled()) {
+ logger.info("adding MessageProducingCacheListener to GemFire Region '" + this.region.getName() + "'");
+ }
+ this.region.getAttributesMutator().addCacheListener(this.listener);
+ }
+
+ @Override
+ protected void doStop() {
+ if (logger.isInfoEnabled()) {
+ logger.info("removing MessageProducingCacheListener from GemFire Region '" + this.region.getName() + "'");
+ }
+ this.region.getAttributesMutator().removeCacheListener(this.listener);
+ }
+
+
+ private class MessageProducingCacheListener extends CacheListenerAdapter {
+
+ @Override
+ public void afterCreate(EntryEvent event) {
+ if (supportedEventTypes.contains(EventType.CREATED)) {
+ this.processEvent(event);
+ }
+ }
+
+ @Override
+ public void afterUpdate(EntryEvent event) {
+ if (supportedEventTypes.contains(EventType.UPDATED)) {
+ this.processEvent(event);
+ }
+ }
+
+ @Override
+ public void afterInvalidate(EntryEvent event) {
+ if (supportedEventTypes.contains(EventType.INVALIDATED)) {
+ this.processEvent(event);
+ }
+ }
+
+ @Override
+ public void afterDestroy(EntryEvent event) {
+ if (supportedEventTypes.contains(EventType.DESTROYED)) {
+ this.processEvent(event);
+ }
+ }
+
+ private void processEvent(EntryEvent event) {
+ if (payloadExpression != null) {
+ Object evaluationResult = payloadExpression.getValue(event);
+ this.publish(evaluationResult);
+ }
+ else {
+ this.publish(event);
+ }
+ }
+
+ private void publish(Object payload) {
+ sendMessage(MessageBuilder.withPayload(payload).build());
+ }
+ }
+
+}
diff --git a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/ContinuousQueryMessageProducer.java b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/ContinuousQueryMessageProducer.java
new file mode 100644
index 0000000000..2fcfd13871
--- /dev/null
+++ b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/ContinuousQueryMessageProducer.java
@@ -0,0 +1,205 @@
+/*
+ * Copyright 2002-2011 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.gemfire.inbound;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import org.springframework.integration.Message;
+import org.springframework.integration.endpoint.MessageProducerSupport;
+import org.springframework.integration.support.MessageBuilder;
+import org.springframework.util.Assert;
+import org.springframework.util.StringUtils;
+
+import com.gemstone.gemfire.cache.Region;
+import com.gemstone.gemfire.cache.client.Pool;
+import com.gemstone.gemfire.cache.query.CqAttributes;
+import com.gemstone.gemfire.cache.query.CqAttributesFactory;
+import com.gemstone.gemfire.cache.query.CqEvent;
+import com.gemstone.gemfire.cache.query.CqException;
+import com.gemstone.gemfire.cache.query.CqListener;
+import com.gemstone.gemfire.cache.query.CqQuery;
+import com.gemstone.gemfire.cache.query.QueryService;
+
+/**
+ * Responds to a continuous query (set using the #queryString field) that is
+ * constantly evaluated against a cache {@link com.gemstone.gemfire.cache.Region}.
+ * This is much faster than re-querying the cache manually.
+ *
+ * @author Josh Long
+ * @since 2.1
+ */
+public class ContinuousQueryMessageProducer extends MessageProducerSupport {
+
+ private final Log logger = LogFactory.getLog(this.getClass());
+
+ /**
+ * Not sure yet if there's a way to avoid depending on this.
+ */
+ private volatile Pool pool;
+
+ /**
+ * Must be provided by the client of this class
+ */
+ private final Region, ?> region;
+
+ /**
+ * Is the queryString durable (optional)
+ */
+ private volatile boolean durable = false;
+
+ /**
+ * the {@link com.gemstone.gemfire.cache.query.CqQuery} instance created and
+ * registered with the server
+ */
+ private volatile CqQuery cqQuery;
+
+ /**
+ * the query to be registered against the cache
+ */
+ private final String queryString;
+
+ /**
+ * a reference to a {@link com.gemstone.gemfire.cache.query.QueryService}
+ * that is obtained through the #regionService instance.
+ */
+ private volatile QueryService queryService;
+
+ /**
+ * used when building the queryString itself - optional
+ */
+ private volatile String queryName;
+
+ /**
+ * a {@link com.gemstone.gemfire.cache.query.CqAttributesFactory} to generate
+ * the {@link com.gemstone.gemfire.cache.query.CqAttributes} that in turn
+ * hold the reference to the listener that we register to in turn funnel
+ * messages to the clients of this adapter.
+ */
+ private final CqAttributesFactory cqAttributesFactory = new CqAttributesFactory();
+
+ /**
+ * the adapter requires a query string to continuously evaluate as well as a
+ * {@link com.gemstone.gemfire.cache.Region} against which to evaluate the
+ * query.
+ *
+ * @param region
+ * the region against which the query should be evaluated
+ * @param queryString
+ * the query string
+ */
+ public ContinuousQueryMessageProducer(Region, ?> region, Pool pool, String queryString) {
+ this.region = region;
+ Assert.notNull(this.region, "You must provide a reference to a 'Region'");
+ this.pool = pool;
+ Assert.notNull(this.pool, "You must provide a 'pool'");
+ this.queryString = queryString;
+ Assert.hasText(this.queryString, "You must provide a queryString to evaluate against the region");
+ }
+
+ /**
+ * whether or not the query is durable (that is, whether or not this query
+ * should live beyond the registered query)
+ *
+ * @param durable
+ * whether or not the query is registered and saved and
+ * subsequently retrievable by a query name.
+ */
+ public void setDurable(boolean durable) {
+ this.durable = durable;
+ }
+
+ /**
+ * Specify the name of the queryString (optional).
+ */
+ public void setQueryName(String queryName) {
+ this.queryName = queryName;
+ }
+
+ @Override
+ protected void doStart() {
+ try {
+ cqQuery.execute();
+ }
+ catch (Throwable e) {
+ throw new RuntimeException("Failed to start the continuous query", e);
+ }
+ }
+
+ @Override
+ protected void doStop() {
+ try {
+ this.cqQuery.stop();
+ }
+ catch (CqException e) {
+ throw new RuntimeException("Failed to stop the continuous query", e);
+ }
+ }
+
+ /**
+ * hook to handle registration of the query
+ */
+ private CqQuery registerContinuousQuery(QueryService queryService,
+ String name, String query, boolean durable, CqListener cqListener) throws Throwable {
+ cqAttributesFactory.addCqListener(cqListener);
+ CqAttributes attrs = cqAttributesFactory.create();
+ CqQuery cqQuery = queryService.newCq(name, query, attrs, durable);
+ return cqQuery;
+ }
+
+ @Override
+ protected void onInit() {
+ try {
+ super.onInit();
+
+ // regionService = this.region.getRegionService();
+ queryService = this.pool.getQueryService();
+ String defaultName = String.format("%s-%s-query",
+ getComponentName() + "", getComponentType() + "");
+ queryName = StringUtils.hasText(queryName) ? queryName : defaultName;
+ this.cqQuery = registerContinuousQuery(queryService, queryName,
+ this.queryString, this.durable,
+ new MessageProducingCqListener());
+ }
+ catch (Throwable e) {
+ throw new RuntimeException("Couldn't properly setup the " + getClass().getName(), e);
+ }
+ }
+
+
+ /**
+ * Listener that listens for any events being broadcast as a result of the
+ * evaluation of a continuous query {@link CqQuery}.
+ */
+ class MessageProducingCqListener implements CqListener {
+
+ public void onEvent(CqEvent cqEvent) {
+ Message cqEventMessage = MessageBuilder.withPayload(cqEvent).build();
+ sendMessage(cqEventMessage);
+ }
+
+ public void onError(CqEvent cqEvent) {
+ logger.debug("error on " + getClass() + " (a CqListener) ");
+ throw new RuntimeException("error when interacting with region.", cqEvent.getThrowable());
+ }
+
+ public void close() {
+ logger.debug(getClass() + " close() called");
+ }
+ }
+
+}
diff --git a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/EventType.java b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/EventType.java
new file mode 100644
index 0000000000..62790e3948
--- /dev/null
+++ b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/inbound/EventType.java
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2002-2011 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.gemfire.inbound;
+
+/**
+ * Enumeration of GemFire event types.
+ *
+ * @author Mark Fisher
+ * @since 2.1
+ */
+public enum EventType {
+
+ CREATED,
+
+ UPDATED,
+
+ DESTROYED,
+
+ INVALIDATED
+
+}
diff --git a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/outbound/CacheWritingMessageHandler.java b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/outbound/CacheWritingMessageHandler.java
new file mode 100644
index 0000000000..cde54c777c
--- /dev/null
+++ b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/outbound/CacheWritingMessageHandler.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2002-2011 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.gemfire.outbound;
+
+import java.util.Map;
+
+import org.springframework.data.gemfire.GemfireCallback;
+import org.springframework.data.gemfire.GemfireTemplate;
+import org.springframework.integration.Message;
+import org.springframework.integration.core.MessageHandler;
+import org.springframework.util.Assert;
+
+import com.gemstone.gemfire.GemFireCheckedException;
+import com.gemstone.gemfire.GemFireException;
+import com.gemstone.gemfire.cache.Region;
+
+/**
+ * A {@link MessageHandler} implementation that writes to a GemFire Region.
+ * The Message's payload must be an instance of java.util.Map.
+ *
+ * @author Mark Fisher
+ * @since 2.1
+ */
+public class CacheWritingMessageHandler implements MessageHandler {
+
+ private final GemfireTemplate gemfireTemplate = new GemfireTemplate();
+
+
+ @SuppressWarnings("rawtypes")
+ public CacheWritingMessageHandler(Region region) {
+ Assert.notNull(region, "region must not be null");
+ this.gemfireTemplate.setRegion(region);
+ this.gemfireTemplate.afterPropertiesSet();
+ }
+
+
+ public void handleMessage(Message> message) {
+ // TODO: add support for more options to get key/value (SpEL?)
+ Object payload = message.getPayload();
+ Assert.isTrue(payload instanceof Map, "only Map payloads are supported");
+ final Map, ?> map = (Map, ?>) payload;
+ this.gemfireTemplate.execute(new GemfireCallback
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
org.springframework
spring-context-support
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
+ compile
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
compile
@@ -136,12 +142,6 @@
1.7.5
compile
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
diff --git a/spring-integration-http/pom.xml b/spring-integration-http/pom.xml
index 9fa1eb7814..37071ff108 100644
--- a/spring-integration-http/pom.xml
+++ b/spring-integration-http/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
javax.servlet
servlet-api
@@ -125,10 +119,10 @@
test
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
+ org.springframework
+ spring-webmvc
+ 3.1.0.M2
+ compile
org.easymock
@@ -155,22 +149,10 @@
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-webmvc
- 3.0.6.BUILD-SNAPSHOT
- compile
-
-
- org.mockito
- mockito-all
- 1.8.4
+ spring-test
+ 3.1.0.M2
test
@@ -179,6 +161,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
+
+ org.mockito
+ mockito-all
+ 1.8.4
+ test
+
junit
junit-dep
diff --git a/spring-integration-ip/pom.xml b/spring-integration-ip/pom.xml
index f6f8e1097a..8d86506d15 100644
--- a/spring-integration-ip/pom.xml
+++ b/spring-integration-ip/pom.xml
@@ -100,30 +100,12 @@
-
- org.springframework.integration
- spring-integration-stream
- 2.1.0.BUILD-SNAPSHOT
- runtime
-
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
@@ -131,16 +113,16 @@
test
- org.hamcrest
- hamcrest-all
- 1.1
+ org.springframework
+ spring-test
+ 3.1.0.M2
test
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ org.springframework.integration
+ spring-integration-stream
+ 2.1.0.BUILD-SNAPSHOT
+ runtime
org.springframework.integration
@@ -148,6 +130,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-jdbc/pom.xml b/spring-integration-jdbc/pom.xml
index 4b2e4fe84f..cba9491675 100644
--- a/spring-integration-jdbc/pom.xml
+++ b/spring-integration-jdbc/pom.xml
@@ -107,21 +107,15 @@
org.springframework
spring-jdbc
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
org.springframework
- spring-aop
- 3.0.6.BUILD-SNAPSHOT
+ spring-context
+ 3.1.0.M2
compile
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.apache.derby
derby
@@ -134,12 +128,6 @@
1.6.8
test
-
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
-
log4j
log4j
@@ -152,12 +140,6 @@
2.2
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
com.h2database
h2
@@ -170,12 +152,36 @@
2.3
test
+
+ org.springframework
+ spring-aop
+ 3.1.0.M2
+ compile
+
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -194,16 +200,10 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.springframework
spring-tx
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
diff --git a/spring-integration-jms/pom.xml b/spring-integration-jms/pom.xml
index 82b44e620d..21789b75be 100644
--- a/spring-integration-jms/pom.xml
+++ b/spring-integration-jms/pom.xml
@@ -106,16 +106,10 @@
5.3.0
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework
spring-context
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
@@ -138,15 +132,9 @@
org.springframework
- spring-oxm
- 3.0.6.BUILD-SNAPSHOT
- test
-
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
+ spring-jms
+ 3.1.0.M2
+ compile
org.easymock
@@ -154,12 +142,36 @@
2.3
test
+
+ org.springframework
+ spring-oxm
+ 3.1.0.M2
+ test
+
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -172,22 +184,10 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
-
- org.springframework
- spring-jms
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.springframework
spring-tx
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
diff --git a/spring-integration-jmx/pom.xml b/spring-integration-jmx/pom.xml
index 5807f8adbb..abc81246e6 100644
--- a/spring-integration-jmx/pom.xml
+++ b/spring-integration-jmx/pom.xml
@@ -102,9 +102,9 @@
org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
+ spring-context
+ 3.1.0.M2
+ compile
org.aspectj
@@ -112,12 +112,6 @@
1.6.8
compile
-
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
-
cglib
cglib-nodep
@@ -130,12 +124,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -148,6 +136,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -160,12 +166,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.aspectj
aspectjrt
diff --git a/spring-integration-mail/pom.xml b/spring-integration-mail/pom.xml
index 20a43f10de..9da386745b 100644
--- a/spring-integration-mail/pom.xml
+++ b/spring-integration-mail/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
cglib
cglib-nodep
@@ -118,12 +112,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -136,6 +124,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework
+ spring-context-support
+ 3.1.0.M2
+ compile
+
javax.activation
activation
@@ -143,30 +149,24 @@
compile
true
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework
- spring-context-support
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
javax.mail
mail
diff --git a/spring-integration-mongodb/pom.xml b/spring-integration-mongodb/pom.xml
index f566e7dd81..8055e40d01 100644
--- a/spring-integration-mongodb/pom.xml
+++ b/spring-integration-mongodb/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.data
spring-data-commons-core
@@ -121,7 +115,7 @@
org.springframework
spring-context
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
@@ -136,12 +130,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -154,6 +142,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -166,12 +172,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
junit
junit-dep
diff --git a/spring-integration-redis/pom.xml b/spring-integration-redis/pom.xml
index a81e427f75..ea4a7a13fa 100644
--- a/spring-integration-redis/pom.xml
+++ b/spring-integration-redis/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.data
spring-data-commons-core
@@ -121,7 +115,7 @@
org.springframework
spring-context
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
@@ -136,12 +130,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -154,6 +142,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -166,12 +172,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
junit
junit-dep
diff --git a/spring-integration-rmi/pom.xml b/spring-integration-rmi/pom.xml
index c6fd208573..0bda4d9778 100644
--- a/spring-integration-rmi/pom.xml
+++ b/spring-integration-rmi/pom.xml
@@ -100,18 +100,6 @@
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
-
- org.springframework
- spring-aop
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.easymock
easymock
@@ -120,9 +108,9 @@
org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
+ spring-aop
+ 3.1.0.M2
+ compile
org.easymock
@@ -130,17 +118,11 @@
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ spring-test
+ 3.1.0.M2
+ test
org.springframework.integration
@@ -148,6 +130,24 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-scripting/pom.xml b/spring-integration-scripting/pom.xml
index 744a4752da..7f33eaefe5 100644
--- a/spring-integration-scripting/pom.xml
+++ b/spring-integration-scripting/pom.xml
@@ -100,30 +100,36 @@
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
@@ -136,12 +142,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.codehaus.groovy
groovy-all
diff --git a/spring-integration-security/pom.xml b/spring-integration-security/pom.xml
index 05352f13b5..0341f059e4 100644
--- a/spring-integration-security/pom.xml
+++ b/spring-integration-security/pom.xml
@@ -100,18 +100,6 @@
-
- org.springframework
- spring-aop
- 3.0.6.BUILD-SNAPSHOT
- compile
-
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.security
spring-security-core
@@ -142,12 +130,30 @@
2.3
test
+
+ org.springframework
+ spring-aop
+ 3.1.0.M2
+ compile
+
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
org.hamcrest
hamcrest-all
@@ -160,12 +166,6 @@
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.springframework.security
spring-security-config
@@ -181,7 +181,7 @@
org.springframework
spring-tx
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
diff --git a/spring-integration-sftp/pom.xml b/spring-integration-sftp/pom.xml
index 47e19663c8..bc80a36e02 100644
--- a/spring-integration-sftp/pom.xml
+++ b/spring-integration-sftp/pom.xml
@@ -100,24 +100,12 @@
-
- org.springframework.integration
- spring-integration-stream
- 2.1.0.BUILD-SNAPSHOT
- compile
-
com.jcraft
jsch
0.1.42
compile
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.integration
spring-integration-file
@@ -136,12 +124,6 @@
2.2
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -154,6 +136,30 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework.integration
+ spring-integration-stream
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework
+ spring-context-support
+ 3.1.0.M2
+ compile
+
javax.activation
activation
@@ -161,24 +167,18 @@
compile
true
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework
- spring-context-support
- 3.0.6.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
diff --git a/spring-integration-stream/pom.xml b/spring-integration-stream/pom.xml
index a8d03a1f68..ef12ba4b0f 100644
--- a/spring-integration-stream/pom.xml
+++ b/spring-integration-stream/pom.xml
@@ -106,29 +106,17 @@
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
+ spring-test
+ 3.1.0.M2
+ test
org.springframework.integration
@@ -136,6 +124,18 @@
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-test/pom.xml b/spring-integration-test/pom.xml
index a87768976d..c6a5ba0886 100644
--- a/spring-integration-test/pom.xml
+++ b/spring-integration-test/pom.xml
@@ -106,42 +106,42 @@
2.3
test
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.easymock
easymockclassextension
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework
+ spring-context
+ 3.1.0.M2
+ compile
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework
- spring-context
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
1.8.4
compile
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
log4j
log4j
diff --git a/spring-integration-twitter/pom.xml b/spring-integration-twitter/pom.xml
index 0a897bc661..7afb3bd5fa 100644
--- a/spring-integration-twitter/pom.xml
+++ b/spring-integration-twitter/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.twitter4j
twitter4j-core
@@ -124,12 +118,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -142,6 +130,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
+
+ org.springframework
+ spring-context-support
+ 3.1.0.M2
+ compile
+
javax.activation
activation
@@ -149,30 +155,24 @@
compile
true
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework
- spring-context-support
- 3.0.6.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
1.8.4
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
junit
junit-dep
diff --git a/spring-integration-ws/pom.xml b/spring-integration-ws/pom.xml
index 69fc487b92..65ccadca7e 100644
--- a/spring-integration-ws/pom.xml
+++ b/spring-integration-ws/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
com.sun.xml.messaging.saaj
saaj-impl
@@ -122,7 +116,7 @@
org.springframework
spring-expression
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
@@ -137,12 +131,6 @@
2.2
test
-
- org.springframework
- spring-oxm
- 3.0.6.BUILD-SNAPSHOT
- compile
-
javax.xml.soap
saaj-api
@@ -156,12 +144,6 @@
true
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -174,12 +156,30 @@
2.3
test
+
+ org.springframework
+ spring-oxm
+ 3.1.0.M2
+ compile
+
stax
stax-api
1.0.1
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
javax.activation
activation
@@ -187,18 +187,18 @@
compile
true
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
org.hamcrest
hamcrest-all
1.1
test
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all
diff --git a/spring-integration-xml/pom.xml b/spring-integration-xml/pom.xml
index ce269276a8..3d165cdfbd 100644
--- a/spring-integration-xml/pom.xml
+++ b/spring-integration-xml/pom.xml
@@ -100,12 +100,6 @@
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
org.springframework.ws
spring-xml
@@ -121,7 +115,7 @@
org.springframework
spring-context
- 3.0.6.BUILD-SNAPSHOT
+ 3.1.0.M2
compile
@@ -148,18 +142,6 @@
2.0EA3
test
-
- org.springframework
- spring-oxm
- 3.0.6.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -172,12 +154,24 @@
2.3
test
+
+ org.springframework
+ spring-oxm
+ 3.1.0.M2
+ compile
+
stax
stax-api
1.0.1
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
javax.activation
activation
@@ -185,18 +179,24 @@
compile
true
-
- org.hamcrest
- hamcrest-all
- 1.1
- test
-
org.springframework.integration
spring-integration-core
2.1.0.BUILD-SNAPSHOT
compile
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.hamcrest
+ hamcrest-all
+ 1.1
+ test
+
org.mockito
mockito-all
diff --git a/spring-integration-xmpp/pom.xml b/spring-integration-xmpp/pom.xml
index 6ac9f88a8e..36a7bbeb94 100644
--- a/spring-integration-xmpp/pom.xml
+++ b/spring-integration-xmpp/pom.xml
@@ -100,18 +100,6 @@
-
- org.springframework.integration
- spring-integration-stream
- 2.1.0.BUILD-SNAPSHOT
- test
-
-
- org.springframework
- spring-test
- 3.0.6.BUILD-SNAPSHOT
- test
-
cglib
cglib-nodep
@@ -124,12 +112,6 @@
1.2.12
test
-
- org.springframework.integration
- spring-integration-test
- 2.1.0.BUILD-SNAPSHOT
- test
-
org.easymock
easymock
@@ -142,6 +124,24 @@
2.3
test
+
+ org.springframework
+ spring-test
+ 3.1.0.M2
+ test
+
+
+ org.springframework.integration
+ spring-integration-stream
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
+
+ org.springframework.integration
+ spring-integration-core
+ 2.1.0.BUILD-SNAPSHOT
+ compile
+
javax.activation
activation
@@ -155,6 +155,18 @@
3.1.0
compile
+
+ org.springframework
+ spring-context-support
+ 3.1.0.M2
+ compile
+
+
+ org.springframework.integration
+ spring-integration-test
+ 2.1.0.BUILD-SNAPSHOT
+ test
+
jivesoftware
smackx
@@ -167,18 +179,6 @@
1.1
test
-
- org.springframework
- spring-context-support
- 3.0.6.BUILD-SNAPSHOT
- compile
-
-
- org.springframework.integration
- spring-integration-core
- 2.1.0.BUILD-SNAPSHOT
- compile
-
org.mockito
mockito-all