Remote Procedure Call
Remote Procedure Call
import java.rmi.*;
import java.io.*;
try
System.out.println("Type something...");
String input=br.readLine();
System.out.println(p.countInput(input));
catch(Exception e) {
Interface program
import java.rmi.*;
import java.rmi.*;
import java.rmi.server.*;
try{
Naming.rebind("rmiInterface",p);
catch(Exception e)
}
public String countInput(String input) throws RemoteException
String reply;
return reply;