CORBA 2.3.3 Programmer's Guide for Java

Walkthrough of Message Flows Using the Naming Service as an Example
Message flows in a NonStop CORBA subsystem can be complex. Understanding the patterns is often helpful in debugging an application or tuning
for performance. You may find it useful as background information when you deploy applications.
This section describes the flow of messages from a client to and from a single service, the Naming Service, as an example of how the flow might
happen in a typical application. This walkthrough is not an exhaustive description of how such flows occur. There are other possible ways an
application could work, but the walkthrough shows a relatively simple example.
Communicating with the root naming context is the first activity many clients engage in. But the Naming Service is not a unique entity; it is treated as
just another NonStop CORBA server. It uses the configuration database and transport protocols like other NonStop CORBA servers.
When NonStop CORBA is installed, a basic working configuration is stored in the configuration database. The Naming Service configuration would
be configured using the configuration database entity NS@ORB(-ORBprofile NS)as follows:
[dbname:$data01.RK00.NSDCFGDB] 2>entity NS@ORB
fs_server true
use_comm_server true
server_class NS
pathmon $Zndm
tsmp_server true
tcp_server true
When the application is started, the following flows occur (Figure A-4):
Figure A.4. Message Flows
Naming Service calls ORB_init (flow 1 in the figure).
Naming Service creates and publishes URL for the root naming context IOR (flow 2 in the figure).
Network client imports IOR (flow 3 in the figure).
Network client ORB tries to contact target object, for example, Naming Service root naming context (flow 4 in the figure).
LSD sends forwarding reply (flows 5 and 6 in the figure).
Client ORB tries again (flow 7 in the figure).
Comm Server receives and relays request (flows 7 and 8 in the figure).
The server processes request (flows 8 and 9 in the figure).