Before invoking methods on component instances, the client must connect to a server and instantiate the components. Your code must perform these steps to create proxy instances:
Step |
What it does |
Detailed explanation |
---|---|---|
1 |
Initialize the CORBA ORB and create an ORB reference. |
|
2 |
Use the ORB reference to create a Manager instance. |
|
3 |
Use the Manager instance to create a Session. |
|
4 |
Use the Session instance to create stub component instances. |
|
5 |
Call the stub methods to remotely invoke component methods. |
Other patterns for proxy instantiation
Some patterns for proxy instantiation used in clients written
for earlier EAServer releases are not compatible with EAServer 6.0.
In particular, clients that use the CosNaming API
or SessionManager::Factory::create methods that take
parameters should be modified to use the implementation pattern described
here. For more information, see “Using the CosNaming interface”.