Instantiating component proxies

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.

“Configure and initialize the ORB runtime”

2

Use the ORB reference to create a Manager instance.

“Creating a Manager instance”

3

Use the Manager instance to create a Session.

“Creating sessions”

4

Use the Session instance to create stub component instances.

“Creating stub instances”

5

Call the stub methods to remotely invoke component methods.

“Invoking methods”

NoteOther 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”.