I'm writing my server code, but now I'm wondering if I need to start the RMI Registry through code. Because if I do, perhaps you can help me to do it.
Or the examiners start the RMI Registry.
I've been testing the server, writing the rmiregistry command in a command window.
To start the registry and to bind an object (stub) to this registry, I use this code:
The accessor/examiner will not start the registry. He/She only uses the command "java -jar runme.jar " (with the appropriate parameter) to start the application in different modes, no other actions should be required (or you may/will fail).
Eugenio Flores wrote:So with java -jar runme.jar will the examiners start both, client and server?
Correct Depending on the parameter the 3 different modes (network server, client application in networked mode and client application in standalone mode) will be started with that command, and if the accessor has to do something else (e.g. starting the rmi registry, creating a properties file,...) you'll fail automatically because you'll violate a must requirement