Andrew:
A daemonizing threads in a pool also doesn't help
Can you explain as to why doesnt it help?
If all the worker threads in a pool are daemons then the pool will automatically shutdown when the user threads die i.e. your threadpool will not hold a JVM shutdown.
Toggling thread.setDaemon(true); to true and false will unhold and hold JVM termination:
[ July 07, 2008: Message edited by: Nitesh Kant ]