sonstone
sonstone

Reputation: 717

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.

Upvotes: 0

Views: 392

Answers (1)

user207421
user207421

Reputation: 310916

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.

Upvotes: 1

Related Questions