Building CORBA applications

About this task

The following steps define the general process for creating CORBA components using IBM® Rational® Rhapsody®:

Procedure

  1. Create a C++ project in Rational Rhapsody. (See the Creating a CORBA project for more details.)
  2. Define CORBA interfaces by assigning CORBA stereotypes to model elements. (See the Creating the required CORBA stereotype and Creating the CORBA IObserver interface section for more details.)
  3. Create client and server relations between interfaces and classes in the structural model. (See the Creating the class and inheritance of the system sections for more details.)
  4. Set up CORBA properties for the appropriate model elements. (See the Creating the server component for more details.)
  5. Generate code. The product automatically generates Interface Definition Language (IDL) code for the items tagged as CORBA stereotypes and C++ code for the remaining items
  6. Build client and server components. The product generates the IDL code needed for the client and server components. This IDL code is then compiled by the IDL compiler to create the necessary CORBA stubs and skeletons.
  7. Start the server and client by running the applications.

Results

You determine what classes you want to communicate with each other and specify that they have the <<CORBAInterface>> stereotype.


Feedback