读书人

RMI简略示例

发布时间: 2014-01-19 01:28:51 作者: rapoo

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();}}

?

读书人网 >编程

热点推荐