From e3757768112db4255fa4a871d049b9fac0f4db90 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sun, 2 Nov 2008 23:23:07 +0000 Subject: [PATCH] Setting the TaskExecutor prior to calling afterPropertiesSet(). --- .../integration/gateway/AbstractMessagingGateway.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {