Using the IIOP samples

The following sample applications demonstrate the use of IIOP applications (stateless CORBA objects) and the CICS® Java™ programming support (JCICS):
HelloWorld sample

This sample provides a simple test of the IIOP components. The client program:

  • reads the file genfac.ior to obtain a reference to the generic factory
  • uses the generic factory to create a HelloWorld object
  • invokes method sayHello to send a greeting to the server (Hello from HelloWorldClient)and receive a greeting from it in reply (Hello from CICS TS)

The design of the application is described in comments in the code.

BankAccount sample
The sample consists of the following main parts:
  1. A traditional CICS application that uses BMS and the EXEC CICS API, written in C. This application consists of two transactions:
    BNKI
    Initializes a file with information about a number of bank accounts. These accounts have numbers in the range 23 through 30.
    BNKQ
    Queries the information in the accounts. There is also a CICS program, DFH$IICC, which performs a credit check for an account.
  2. An implementation of an IDL interface that defines a bank account object. The implementation is written in Java and runs as a stateless CORBA object. This implementation uses the bank account file to access bank account information and the DFH$IICC credit check program to obtain credit ratings.
  3. A CORBA client application written in Java that displays information about bank account objects.

The design of the application is described in comments in the code.

This chapter describes the samples and tells you how to run them. The following topics are covered: