- package cn.hhj;
- import cn.hhj.proxy.RpcProxyServer;
- import cn.hhj.service.HelloServiceImpl;
- import cn.hhj.service.IHelloService;
- public class RpcServerStart {
- public static void main( String[] args ) throws Exception {
- IHelloService helloService=new HelloServiceImpl();
- RpcProxyServer proxyServer=new RpcProxyServer();
- proxyServer.push(helloService);
- }
- }
|