简体   繁体   中英

Is it possible to run the RMI Registry as a daemon

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM