diff --git a/spring-batch-admin-parent/pom.xml b/spring-batch-admin-parent/pom.xml index 97967d24d..c29038d68 100755 --- a/spring-batch-admin-parent/pom.xml +++ b/spring-batch-admin-parent/pom.xml @@ -35,8 +35,8 @@ false 2.2.4.BUILD-SNAPSHOT - 4.0.0.BUILD-SNAPSHOT - 4.0.0.BUILD-SNAPSHOT + 4.0.0.RELEASE + 4.0.0.M2 1.0.3.RELEASE @@ -570,6 +570,11 @@ spring-beans ${spring.framework.version} + + org.springframework + spring-messaging + ${spring.framework.version} + org.springframework spring-context diff --git a/spring-batch-integration/pom.xml b/spring-batch-integration/pom.xml index 08e25a0ca..4f2f2fa27 100644 --- a/spring-batch-integration/pom.xml +++ b/spring-batch-integration/pom.xml @@ -135,6 +135,10 @@ org.springframework spring-context + + org.springframework + spring-messaging + org.springframework spring-aop @@ -164,8 +168,8 @@ org.apache.maven.plugins maven-compiler-plugin - 1.5 - 1.5 + 1.6 + 1.6 diff --git a/spring-batch-integration/src/main/java/org/springframework/batch/integration/async/StepExecutionInterceptor.java b/spring-batch-integration/src/main/java/org/springframework/batch/integration/async/StepExecutionInterceptor.java index 056eade96..3a2d56337 100644 --- a/spring-batch-integration/src/main/java/org/springframework/batch/integration/async/StepExecutionInterceptor.java +++ b/spring-batch-integration/src/main/java/org/springframework/batch/integration/async/StepExecutionInterceptor.java @@ -18,11 +18,11 @@ package org.springframework.batch.integration.async; import org.springframework.batch.core.StepExecution; import org.springframework.batch.core.scope.context.StepContext; import org.springframework.batch.core.scope.context.StepSynchronizationManager; -import org.springframework.integration.channel.ChannelInterceptor; -import org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter; import org.springframework.integration.support.MessageBuilder; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.support.ChannelInterceptor; +import org.springframework.messaging.support.ChannelInterceptorAdapter; /** * A {@link ChannelInterceptor} that adds the current {@link StepExecution} (if diff --git a/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/ChunkMessageChannelItemWriter.java b/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/ChunkMessageChannelItemWriter.java index 0a6782790..1356849e8 100644 --- a/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/ChunkMessageChannelItemWriter.java +++ b/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/ChunkMessageChannelItemWriter.java @@ -217,7 +217,7 @@ public class ChunkMessageChannelItemWriter extends StepExecutionListenerSuppo * and we shouldn't be) */ private void getNextResult() throws AsynchronousFailureException { - Message message = messagingGateway.receive(replyChannel); + Message message = (Message) messagingGateway.receive(replyChannel); if (message != null) { ChunkResponse payload = message.getPayload(); if (logger.isDebugEnabled()) { diff --git a/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptor.java b/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptor.java index e66b7d8ec..c258e027a 100644 --- a/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptor.java +++ b/spring-batch-integration/src/main/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptor.java @@ -3,11 +3,11 @@ package org.springframework.batch.integration.chunk; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.InitializingBean; -import org.springframework.integration.channel.ChannelInterceptor; -import org.springframework.integration.channel.interceptor.ChannelInterceptorAdapter; import org.springframework.integration.core.MessageSource; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.support.ChannelInterceptor; +import org.springframework.messaging.support.ChannelInterceptorAdapter; import org.springframework.util.Assert; diff --git a/spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandler.java b/spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandler.java index b0599c1d7..e84e2507b 100644 --- a/spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandler.java +++ b/spring-batch-integration/src/main/java/org/springframework/batch/integration/partition/MessageChannelPartitionHandler.java @@ -132,7 +132,8 @@ public class MessageChannelPartitionHandler implements PartitionHandler { messagingGateway.send(request); } - Message> message = messagingGateway.receive(replyChannel); + @SuppressWarnings("unchecked") + Message> message = (Message>) messagingGateway.receive(replyChannel); if (logger.isDebugEnabled()) { logger.debug("Received replies: " + message); }