+

Search Tips   |   Advanced Search

Initial context support

All naming operations begin with obtaining an initial context. We can view the initial context as a starting point in the namespace. Use the initial context to perform naming operations, such as looking up and binding objects in the namespace.


Initial contexts registered with the ORB as initial references

The root contexts listed in the following table are registered with the name server's ORB and can be used as an initial context. An initial context is used by CORBA and enterprise bean applications as a starting point for namespace lookups. The keys for these roots as recognized by the ORB are shown in the following table:

A server root initial context is the server root context for the specific server we are accessing. Similarly, a node root initial context is the node root for the server being accessed.

Use the previously mentioned keys in CORBA INS object URLs (corbaloc and corbaname) and as an argument to an ORB resolve_initial_references call. For examples, see CORBA and JNDI programming examples, which show how to get an initial context.


Default initial contexts

The default initial context depends on the type of client.


Related:

  • Naming
  • Namespace logical view
  • Use naming
  • Developing applications that use JNDI
  • Developing applications that use CosNaming (CORBA Naming interface)
  • Example: Getting the default initial context
  • Example: Getting an initial context by setting the provider URL property
  • Example: Getting an initial context with CosNaming