Java RPC工具 - eurpc

jopen 12年前

Java RPC工具,方便快速地创建RPC Server/RPC Client。
启动一个服务器:

// handler implemented a customized service interface  CustomizedServiceInterface handler;     /*   * 1. BIORpcServer could be replaced by NettyRpcServer   * 2. JDKObjectSerializer could be replaced by ProtostuffSerializer(or other serializers implemented ServerSerializer)   */  RpcServer server = new BIORpcServer(port, JDKObjectSerializer.getInstance(), new Object[]{handler});   server.start();

项目主页:http://www.open-open.com/lib/view/home/1356339187229