a simple rpc for java