private void initialize(ClientProxy clientProxy) throws Exception { ClientCreateRequest request = new ClientCreateRequest(clientProxy.getName(), clientProxy.getServiceName()); final ClientContext context = new ClientContext(client, this); new ClientInvocation(client, request).invoke().get(); clientProxy.setContext(context); clientProxy.onInitialize(); }
private void initialize(ClientProxy clientProxy) throws Exception { ClientMessage clientMessage = CreateProxyParameters.encode(clientProxy.getName(), clientProxy.getServiceName()); final ClientContext context = new ClientContext(client, this); new ClientInvocation(client, clientMessage).invoke().get(); clientProxy.setContext(context); clientProxy.onInitialize(); }