-
Although the code from the previous slide is a complete object implementation;
instances of that class are not automatically CORBA objects.
-
Instances need to be registered with the ORB
-
This registration is done via an API known as an object adapter
-
In this case we are using a specific object adapter, the Portable Object
Adapter (POA)
-
Code Sample 11 shows
the code for initializing the ORB, obtaining the object adapter, creating an
implementation instance, and registering that instance with the ORB
-
There are several different forms of registering an implementation with the ORB
-
This is the simplest in several respects in that it uses the default POA and a
registration mechanism known as implicit activation
|