The client code to initialize the ORB and the name service is pretty much identical to what we saw in the object server. We first call the static ORB.init method, which initializes the client-side ORB and returns a its reference. Then we can retrieve a reference to the naming service by calling "resolve_initial_references". We must then narrow, or cast the name service reference to its correct type.
Next we will see how to look up a remote object's reference from the name service.