The Spring org.springframework.scheduling.TaskScheduler is different from the JDK java.util.concurrent.ScheduledExecutorService in the way that it does not allow scheduling a java.util.concurrent.Callable with a fixed delay (it can just schedule java.lang.Runnables).
Is there a Spring-based alternative to the ScheduledExecutorService available (that is automatically shut down on context destruction) that supports scheduling Callables?
If the only thing you need is shutdown, use
destroy-method:Works just fine for us.
PS. You may need to use
factory-method="newScheduledThreadPool"instead.