14 lines
381 B
Java
14 lines
381 B
Java
package com.shockkid;
|
|
|
|
/**
|
|
* Hello world!
|
|
*/
|
|
public class Client {
|
|
public static void main(String[] args) {
|
|
RpcProxyClient rpcProxyClient = new RpcProxyClient();
|
|
HelloServer helloServer = rpcProxyClient.clientProxy(HelloServer.class, "localhost", 8081);
|
|
Object obj = helloServer.sayHello("lisang");
|
|
System.out.println(obj.toString());
|
|
}
|
|
}
|