/* * WorkerClient.java * * Created on October 9, 2001, 4:43 PM */ package rmi.server; import java.rmi.*; /** * * @author tb115823 */ public class WorkerClient { /** Creates new WorkerClient */ public WorkerClient() { } public static void main(String args[]) { System.setSecurityManager(new RMISecurityManager()); try { WorkerInterface obj = (WorkerInterface)Naming.lookup("//localhost:1099/w1"); //System.out.println("calling Worker.sayHello: "); System.out.println(obj.sayHello()); } catch (Exception e) { e.printStackTrace(); } } }