namingService(id=character(0))
id
| either no value if one is querying the current value or a CORBA identifier - IOR or character vector identifying a nested path in the naming context - specifying a CORBA Naming Context which is to be used as the new default naming service value. |
"Project1", "A" and "Project1", "B"
we can temporarily make "Project1"
the default naming service and refer to these objects
simply as "A" and "B".
Alternatively, we can switch to another naming service which may be managed by a different group, or contain objects for a different project, etc. This is a managerial/configuration decision.
createNamingContext,
namedCorbaObject, namingServiceContents
namingService()
# change the default to point to
# a naming context within the current default on.
namingService("R")
# start a new naming service and trap its IOR
system("nameserv -OAport 5678 --ior > /tmp/Name.ref &")
old <- namingService(ior("/tmp/Name.ref"))
on.exit(namingService(old))