createNamingContext {CORBA}R Documentation

Create a new CORBA naming context within the naming service.

Description

Creates a new naming context into which CORBA servers can be registered.

Usage

createNamingContext(..., recursive=F, server=NULL)

Arguments

... one or more character elements which are treated either as the names of individual naming contexts to be created, or which are collected to define a path identifying the new naming context relative to the top-level container of the default CORBA naming service.
recursive controls whether multiple names in ... are treated as multiple new naming context names or a single new naming context at depth length(...)-1.
server CORBA identifier (IOR, name relative to the current top-level naming service in which the new naming context will be created.

Value

A CORBA object (IOR and name) with IDL type NamingContext which can be used in future calls.

Author(s)

Duncan Temple Lang

References

Usual CORBA references

See Also

namedCorbaObject, namingService, namingServiceContents, removeNamedCorbaObject

Examples

    # Can run if naming server is running.
  createNamingContext("R")
  namingServiceContents()
    # create A within R. 
  createNamingContext("A", server=namedCorbaObject("R"))
  namingServiceContents()
    # create B within R.
  createNamingContext("R","B", recursive=TRUE)
  namingServiceContents()
  createNamingContext("X","Y","Z", recursive=FALSE)
  namingServiceContents()