
Hello friends,
In this post we will see how RPC (Remote Procedure Call) mechanism can be implemented in Java.
RMI (Remote Method Invocation) is the special mechanism to do RPC in Java. RMI is the java flavor of RPC in other languages, but core concept is still same!
The main Idea is summarized as below:
In this example, we make a server (RMIServer.java) to receive input text from client application and replies how many characters it received.
Server Side:
Create a remote interface. (myInterface.java)
Create a separate java file to implement the remote interface. (RMIServer.java)
Register...