title: How do I create a rmi server that will accept only one connection at a time?
body: <p>I'm writing a client-server pair in java using rmi java. I want the server to listen for a connection, and while one client is connected the server should reject any other clients that try to connect.</p>