I would assume that SimpleAsyncTaskExecutor
and ThreadPoolTaskExecutor
behave the same way with respect to thread name prefix initialization, namely, SimpleAsyncTaskExecutor
should be BeanNameAware
and set the thread name prefix the same way as implemented in ExecutorConfigurationSupport
.
Comment From: sbrannen
As a workaround for having the thread name prefix based implicitly on the bean name, you can invoke the SimpleAsyncTaskExecutor(String)
constructor.
Comment From: sbrannen
Since SimpleAsyncTaskExecutor
resides in spring-core
it cannot implement BeanNameAware
which resides in spring-beans
.
In light of that, I am closing this issue.