RMI 是java语言的一个RPC框架,本文给出基础例子如下: 1.实现接口: public interface ICalc extends Remote { public int add(int param1, int param2) throws java.rmi.RemoteException; } 2.服务端实现该接口: public class CalcImpl extends UnicastRemoteObject implements ICalc { protected CalcI…