import java.rmi.*; import java.rmi.server.*; public class EchoImpl extends UnicastRemoteObject implements Echo { //RemoteExceptionÀ» ´øÁö´Â Default »ý¼ºÀÚ¸¦ (µ¿Àû»ý¼º) public EchoImpl() throws RemoteException{} //¿ø°Ý ÀÎÅÍÆäÀ̽ºÀÇ Á¤ÀÇ public String sayEcho(String name) throws RemoteException{ try{ System.out.println("¿äû Ŭ¶óÀ̾ðÆ®:"+getClientHost()+"-->"+name); }catch(Exception e){} return "hi"+name; } }