NonStop Software

Overview of NonStop DOM Application Development

Previous Topic | Next Topic | Contents | Index
Getting Started Guide | Administration Guide | Reference Guide

A distributed object application using NonStop DOM consists of three major types of components:

The same process can be both a client and a server; that is, a process can host objects and also make requests of objects in the same process or a different process.

This section provides an overview of the steps used in developing a simple client and a server. When a more complex application environment is developed, these same steps are used for the individual parts. What changes is the number of objects and the complexity of the interactions between the clients and the objects.

Although it is common to describe application development as though one developer controled of all the application components, object technology lets you develop discrete components without knowing the details of other components with which they interact.

Let's start with an example object interface specification, in stock.idl, and follow the process of developing a client and a server. The required steps are described below and illustrated in Figure 1.

  1. The CORBA Interface Definition Language (IDL) provides a starting point for the object implementation. The writer of an object class uses IDL to specify the object interface.
  2. The IDL specification is input to the IDL compiler.
  3. The IDL compiler generates the following types of files:
  4. The client application developer writes application code, which uses the object, so it includes the client header file produced by the IDL compiler.
  5. The client application code is compiled, producing an object file.
  6. The client stub code produced by the IDL compiler is compiled producing an object file.
  7. The two client application files are linked (usually with other object files) to produce a client program.
  8. The server implementation developer produces a object implementation header file based on information found in the server skeleton header.
  9. The server implementation developer produces the server main program and object implementation. Code must be written for each method declared in the IDL interface definition.
  10. The server implementation code is compiled, producing an object file.
  11. The server skeleton code produced by the IDL compiler is compiled producing an object file.
  12. The two server implementation files are linked (usually with other object files) to produce a server program.
  13. The server program is started. It uses the NonStop DOM ORB implementation contain in the NonStop DOM Shared Runtime Library (SRL).
  14. The client application program is started. It also uses the NonStop DOM SRL. It makes requests of the object hosted in the server and receives replies.

Figure 1. The Process of Developing a Client and a Server



Previous Topic | Next Topic | Contents | Top
Getting Started Guide | Administration Guide | Reference Guide
Bibliography | Glossary | Index
© Tandem, a division of Compaq. All rights reserved. Legal notices.