Corba - 2
Corba - 2
Before diving into IIOP, let me first explain some of the terminology used in this
article.
Each ORB must define a standard representation for the objects it transmits, the so-
called on-the-wire format. In an ideal world, all ORBs would use the same on-the-
wire format, but this is not how CORBA implementations have evolved. To cope with
this problem, CORBA 2.0 defines a standard format that ORBs can use to exchange
objects: the General Inter-ORB Protocol (GIOP). The Internet Inter-ORB Protocol
(IIOP) in turn specifies how GIOP maps to TCP.
struct NameComponent {
Istring id;
Istring kind;
};
A name is a sequence of these structures:
typedef sequence<NameComponent> Name;
The id member of a NameComponent is a simple identifier for the object;
the kind member is a secondary way to differentiate objects and is intended to be used
by the application layer. For example, you could use the kind member to distinguish
the type of the object being referred to. The semantics you choose for this member are
not interpreted by OrbixNames.
Both the id and kind members of a NameComponent are used in name resolution. Two
names that differ only in the kind member of one NameComponent are considered to be
different names.
IDL Interfaces to the Naming Service
The IDL module CosNaming contains two interfaces that allow your applications to
access the Naming Service:
NamingContext Provides the operations that allow you to access the main features of the Naming
Service, such as binding and resolving names.
BindingIterator Allows you to read each element in a list of bindings. Such a list may be returned by
operations of the NamingContext interface.