首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

RMI简略示例

2014-01-19 
RMI简单示例import org.junit.BeforeClassimport org.junit.Testimport com.rmi.client.RMIClientimpor

RMI简单示例
import org.junit.BeforeClass;import org.junit.Test;import com.rmi.client.RMIClient;import com.rmi.server.RMIServer;public class RMITest {@BeforeClasspublic static void setUpBeforeClass() throws Exception {}@Testpublic void testRMI() throws InterruptedException{RMIServer rs = new RMIServer();rs.run();Thread.sleep(100);RMIClient rc = new RMIClient();rc.run();}}

?

热点排行