next up previous
Up: The OMNI Naming Service Previous: Log file

Starting omniNames and setting omniORB.cfg

When starting omniNames for the first time, you must specify the TCP port number on which it should listen. This is written to the log file so that on subsequent invocations it will listen on the same port number and thus can be accessible through the same object reference. When omniNames starts up successfully it writes the stringified object reference for its root context on standard error.

At startup the omniORB runtime tries to read the configuration file omniORB.cfg to obtain the object reference to the root context of the Naming Service. This object reference is returned by the call resolve_initial_references("NameService"). Once you have started omniNames for the first time you have to copy the stringified object reference printed on standard error into omniORB.cfg. The format of the entry is the word NAMESERVICE followed by space and the stringified IOR all on one line. For example:

NAMESERVICE IOR:000000000000002049444c3a436f734e616d696e672f4e616d696e674
36f6e746578743a312e300000000001000000000000002c0001000000000012776962626c
652e776f62626c652e636f6d0004d20000000c3371b8c09528a18700000001