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

                           PRIMTYPES 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 pass primitive Java data types to procedural COBOL

   o How to update primitive Java data types from procedural COBOL

   via the runtime cobcall interface


   SOURCE FILES
   ============
   
   primtypes.cbl		- COBOL source to handle primitive data types
   AboutBox.java		- About box
   BasicCobcall.java	- Java source that wraps the COBOL program primtypes
   Frame1.java		- Window frame for main application
   primtypes.java		- Main application that invokes the window frame


   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 primtypes

   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 BasicCobcall | more


   WHAT THIS DEMO DOES
   ===================
   
   This demo shows how the user can wrap COBOL and call it from Java, 
   and how to work with primitive data types.

   The COBOL source code is wrapped by the Java class "BasicCobcall".
   "BasicCobcall" implements a constructor that takes various primitive
   data types. These primitive data types are stored in the class instance.

   A "call" method is exposed from the BasicCobcall class. This performs
   the runtime.cobcall method to execute the COBOL program "primtypes".

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