simple rpc with java