-
Run RMIserver.java in IntelliJ.
-
Run RMIClient.javain in IntelliJ.
The client code will lookup a server by a identical server URL and then obtain an instance of object instantiated in server JVM.
So the client code can call any methods of this instance of object.
This repo forks from https://github.com/iver3on/RMI.