I am using Eclipse Virgo Server as my OSGi container and my bundle has a Spring provided ThreadPoolTaskExecutor
. When I run the server shutDown.bat
it will throw me an error and hangs up. I do use the threadPoolTaskExecutor.shutDown()
in my code. It seems server hangs before it get called.
Can anyone please explain me why this happens? It seems to me I am not handle the threads correctly.