Java RMI (Remote Method Invocation)
Hi, now I am gonna show you how to write java RMI process to create server and client. from oracle documentation "Java Remote Method Invocation (Java RMI) enables the programmer to create distributed Java technology-based to Java technology-based applications, in which the methods of remote Java objects can be invoked from other Java virtual machines*, possibly on different hosts. RMI uses object serialization to marshal and unmarshal parameters and does not truncate types, supporting true object-oriented polymorphism." So from here, we can easily understand that java rmi server can be located in remote or same jvm host. we can call the remote method from a client that can be located different hosts or same from sever. so what is the difference between "Web Service" and "Java RMI" as both are called from remote client and send responses to the client. Well, the difference is "Java RMI" server and client both should be java process that mean...