I have a ThreadPoolTaskExecutor for sending emails. Currently it's corePoolSize is 5, and queueCapacity is default i.e. max value of integer (unbounded queue)
<bean id="emailTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="5" />
</bean>
The problem I am facing is few of my threads are getting executed and few are not. I have put logs to confirm the same, and comes to a conclusion that the threads are submitted to executor, but they are not even started.
Neither I am getting RejectedExecutionException exception.
What can be the reason of this?