RpcServerStart.java 386 B

12345678910111213
  1. package cn.hhj;
  2. import cn.hhj.proxy.RpcProxyServer;
  3. import cn.hhj.service.HelloServiceImpl;
  4. import cn.hhj.service.IHelloService;
  5. public class RpcServerStart {
  6. public static void main( String[] args ) throws Exception {
  7. IHelloService helloService=new HelloServiceImpl();
  8. RpcProxyServer proxyServer=new RpcProxyServer();
  9. proxyServer.push(helloService);
  10. }
  11. }