??????RMI?У????????????????stub??????????????????????skeleton??

??????δ?????????

????1??????Remote???

?????????????????????????????????????????????????????stub?????????????

????2?????Remote???

???????????????е???????????????y??????????????????????????

????3????rmic????stub??skeleton

???????????????????helper?????????貼????Щ????????Щ?????????????????JDK??????rmic??????????????

????4?????RMI registry ??rmiregistry??

????rmiregistry??綽?????????????????????????stub/helper????

????5???????????

?????????÷?????????У??????????????????????????RMI Registry?????????????????????

????????????

??????????


import java.rmi.Remote; 
import java.rmi.RemoteException; 
 
/** 
 *  
 *    MyRemote.java 
 * 
 *     ??   ??? TODO  
 *     ??   ???? MyRemote.java 
 * 
 *  ver     ?????       ???    ??????     ??????? 
 *     ???????????????????????????????????????????????????????????????????????????????????????????? 
 *  V1.00   2013-3-19   ???    ??????     ???? 
 * 
 *     Copyright (c) 2013 dennisit corporation All Rights Reserved. 
 *    
 *  Email:<a href="mailto:DennisIT@163.com">???????</a> 
 *   
 *   
 *     Remote??????????????ζ????з????????????RMI??????????壬?????????????????? 
 *     ????????????extends???????????????????? 
 *  
 */
public interface MyRemote extends Remote{ 
     
    /** 
     * ???????????????????????????????????????????????????????????? 
     * ?????????????stub??????stub?????????????????/??????????????????????? 
     * ????????????????????????????????????????÷?????????????????????÷? 
     * ???????г????????????????????. 
     *  
     * ???????????????????????primitive??serializable??.?κ???????????????? 
     * ?????????紫??????????????л?????????????????.??????????????????????? 
     * ?????????????л? 
     * @return 
     * @throws RemoteException     
     *                         ???н???е??????????????RemoteException 
     */
    public String sayHello() throws RemoteException;     
     
}