text: tnameserv − Interface Definition Language (IDL).
  tnameserve −ORBInitialPort [ nameserverport ]
  .
  START THE NAMING SERVICE
  You − −ORBInitialPort 1050&
  From an MS-DOS system prompt (Windows), enter:
  start tnameserv −ORBInitialPort 1050
  Clients of the name server must be made aware of the new port number. Do this by setting the org.omg.CORBA.ORBInitialPort property to the new port number when you create the ORB object.
  RUN THE SERVER AND CLIENT ON DIFFERENT HOSTS −ORBInitialPort 1050
  Start the server on the serverhost:
  java Server −ORBInitialPort 1050 −ORBInitialHost nameserverhost
  Start the client on the clienthost:
  java Client −ORBInitialPort 1050 −ORBInitialHost nameserverhost
  STOP THE NAMING SERVICE
  To.
  -Joption
  Passes option to the Java Virtual Machine, where option is one of the options described on the reference page for the Java application launcher. For example, -J-Xms48m sets the startup memory to 48 MB. See java(1).
  ADD OBJECTS TO THE NAME SPACE
  The following example shows how to add names to the name space.);
  }
  }
  }
  BROWSING THE NAME SPACE
  The following sample program shoes how to browse the name space.
  import java.util.Properties;
  import org.omg.CORBA.*;
  import org.omg.CosNaming.*;
  public class NameClientList {
  public static void main(String args[]) {
  try {
  The following code obtains the initial, then the program ends.
  Binding bindings[] = bl.value;
  if (bindings.length == 0) return;
  The remainder of the code loops through the bindings and prints outs the names.
  for (int i=0; i < bindings.length; i++) {
  // get the object reference for each binding
  org.omg.CORBA.Object obj = nc.resolve(bindings[i].binding_name);
  String objStr = orb.object_to_string(obj);
  int lastIx = bindings[i].binding_name.length−1;
  //)
  }
  }
  }
  •
  orbd(1)