
   =========================================================================
                        M I C R O   F O C U S

                   S E R V E R   E X P R E S S  5.0
   =========================================================================
			      ARRAY DEMO
			      ==========

   TABLE OF CONTENTS
   =================
       DESCRIPTION
       SOURCE FILES
       REQUIREMENTS
       HOW TO COMPILE AND RUN THIS DEMO
       WHAT THIS DEMO DOES


   DESCRIPTION
   ===========

   This demo shows:

   o How to receive and access a Java array in Object COBOL.
   
   o How to create a Java array in Object COBOL and pass it to Java.


   SOURCE FILES
   ============

   arraydemo.cbl	- Object COBOL class
   cbltrig.cbl  	- COBOL trigger program
   arraydemo.java	- Java class which invokes COBOL
   arrayview.java	- Java class invoked from COBOL
   javatrig.java	- Java trigger program


   REQUIREMENTS
   ============

   Set up the COBOL and Java environments as described in Chapter 1
   of your Distributed Computing book.


   HOW TO COMPILE AND RUN THIS DEMO
   ================================

   1. A script is provided that compiles all the programs. To invoke
      the script, enter:

      sh ./build.sh

   2. You run the demo using the COBOL trigger program. To invoke this
      program, enter:
      
      cobjrun cbltrig


   WHAT THIS DEMO DOES
   ===================

   The demo first creates an object in the "arraydemo" class and then 
   invokes the "displayArray" method. This method passes an integer array to
   the similarly named COBOL method. The method displays the contents of the 
   array and modifies the contents by adding 50 to each element then 
   returns.
   
   Next, the demo invokes the "newArray" method. This creates a Java
   integer array which it passes to the Java "displayArray" method. This 
   illustrates that the array can be accessed by Java.


   =========================================================================
   Micro Focus is a registered trademark, and Server Express is a trademark,
   of Micro Focus International Limited. 
   =========================================================================
   Copyright (C) 1996-2000 Micro Focus International Limited. 
   All rights reserved.

