Is it possible to run the RMI Registry on a daemon thread? I’d like for it to shut down automatically when my unit tests are finished without calling a System.exit.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t ‘run’ at all, it is executed by the RMI Runtime on demand, so daemon threads dont come into it. You can unexport it like any other remote object.