Thomas Chabaud-3 wrote:
>
> I've tried to call the setDaemon(true), but I get the following exception
> :
>
> java.lang.IllegalThreadStateException
>
Hi, What you can do is to interrupt the RMI Reaper thread :
Set<Thread> threads = Thread.getAllStackTraces().keySet();
for (Thread thread : threads) {
if ("RMI Reaper".equals(thread.getName())) {
thread.interrupt();
}
}
Not sure you will find the trick to get a list of all running threads very
smart, but it is much simpler than using enumerate() ;-)
--
View this message in context:
http://old.nabble.com/RMI-reaper-thread-prevents-JVM-from-exiting-tp27275944p30710220.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]