Hello! I'm a new one in SCJD who just starting study the tutorial of RMI. and I'm doubting about that if there are any tidy way to using RMI? in tutorial, we must do many jobes to make our RMI example run. If I use the same solution in my assignment, I think it is really too bad. well, could we have a tidy way to use RMI, like a just double-click the jar file..
Well, here is one difference between the tutorial and what is used in the SCJD. In the tutorial they talk about dynamic downloading. This requires a Web Server, which you will not have for the SCJD. Using RMI invloves the RMI Registry , which is where you will bind a Remote Object that also extends UnicastRemoteObject. You use rmic to compile and create the stubs, and the client uses a Lookup to access the bound object. Not too difficult there. and pretty tidy in my eyes. When you run the client or the remote it will be with a jar. like "java -jar client.jar" or "java -jar server.jar" Pretty tidy there too. Mark