Setting the TaskExecutor prior to calling afterPropertiesSet().

This commit is contained in:
Mark Fisher
2008-11-02 23:23:07 +00:00
parent 654da47b20
commit e375776811

View File

@@ -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) {