RMI server application exits because no non-daemon threads
843793Jan 17 2006 — edited Mar 24 2008Hi,
I have a very small RMI server application which, when I start it, sometimes exits immediately with no error. I did a bit of debugging and it seems that the only RMI thread which is non-daemon is the RMI Reaper thread, which sometimes doesn't get started by the time my principal thread terminates.
Is there any way to tell the RMI processes to run in non-daemon mode - or is there any way to keep my server running, apart from creating my own non-daemon thread that doesn't do anything? (I'm running on RH Linux with JDK 1.5.0_06 if that makes any difference.)
Thanks,
R