diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java index 22d14c884e..1a7392f020 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/gateway/AbstractMessagingGateway.java @@ -191,8 +191,8 @@ public abstract class AbstractMessagingGateway implements MessagingGateway, Mess else if (this.replyChannel instanceof PollableChannel) { PollingConsumerEndpoint endpoint = new PollingConsumerEndpoint( consumer, (PollableChannel) this.replyChannel); - endpoint.afterPropertiesSet(); endpoint.setTaskScheduler(this.taskScheduler); + endpoint.afterPropertiesSet(); correlator = endpoint; } if (this.isRunning() && correlator instanceof Lifecycle) {