Instantiating stub instances

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”

NoteExcept for the example in “Processing result sets”, the same client source code is used as an example throughout this section. Only the parts relevant to each step are used.