Java遠程方法調用實踐
摘要: 服務器端業務接口繼承自Remote
服務器端業務實現該接口
服務器注冊遠程實現名稱
// style-1
Registry registry = LocateRegistry.createRegistry(RMIParameter.PORT);
registry.rebind(RMIParameter.NAME, bis); // replace existing binding name
// style-2
//java.rmi.Naming.rebind(RMIParameter.NAME, bis); // replace existing binding name
客戶端打樁調用Naming.lookup
閱讀全文