Jun 11th, 2010, 03:26 AM
maximum thread number
is there a maximum thread number when SimpleAsyncTaskExecutor or ThreadPoolTaskExecutor is used? I tried using both of them but in one flow I couldn't achieve to create more than 4 threads. Whatever I set to concurrencyLimit, corePoolSize or maxPoolSize, more than 4 threads does not run parallelly at the same time. it waits threads to end to start new threads. I will be really appreciated if you help me. thanks in advance.
Jun 13th, 2010, 06:25 AM
You don't say very much about what you are trying to do. Assuming it is a Spring Batch task executor in a step (multi-threaded step), look for a throttle-limit in the tasklet configuration.
Jun 14th, 2010, 04:49 AM
thank you Dave. it really worked. i could not find it in any document or forum.