
   =========================================================================
                        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
   =========================================================================

                              ARRAYS DEMO
                              ===========

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


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

   This demo shows:

   o How to read a Java array from procedural COBOL

   o How to update a Java array from procedural COBOL
     via the runtime cobcall interface


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

   cobolarray.cbl       - COBOL source code
   AboutBox.java	- About box
   arrays.java		- Main application that invokes the window frame
   CobolArrays.java	- Java source that wraps the COBOL program cobolarrays
   Frame1.java		- Window frame for main application
      
   
   REQUIREMENTS
   ============

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


   HOW TO COMPILE THIS DEMO
   ========================

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

   sh ./build.sh


   HOW TO RUN THIS DEMO
   ====================

   You can run the demo in graphical mode or in character mode.


   Graphical Mode
   ==============

   At the command line enter:

   cobjrun arrays

   An application window appears. Pull down the run menu and select an
   option. 

   When you have finished, select Exit on the File menu.


   Character Mode
   ==============

   At the command line enter:

   cobjrun CobolArrays | more


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

   The demo shows how to wrap COBOL and call it from Java and how to pass 
   arrays of primitive data to COBOL.

   The COBOL source code is wrapped by the Java class "CobolArrays". This
   class implements an overloaded method called "increment" for each type of
   array passed to COBOL.

   
   =========================================================================
   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.
