Your COBOL development system includes some demonstration programs that illustrate different aspects of calling OO COBOL from Java. These demonstration programs are in the directory in your product installation. Each directory includes all relevant program files, as well as a readme.txt file to explain the programs in more detail.
The following table shows the directories containing the demonstration programs and gives a brief description of the purpose of the demonstration:
Directory | Illustrates |
---|---|
array | Receiving and accessing a Java array in OO COBOL. Creating a Java array in OO COBOL and passing it to Java. |
record | Writing a simple COBOL Java object. Receiving structures in OO COBOL methods from Java objects that implement the DataType interface. Passing parameters BY REFERENCE. |
simple | Writing a simple COBOL Java object. Calling both class and instance OO COBOL methods using Java. |
sort | Writing a simple COBOL Java object. Calling OO COBOL methods using Java. Calling Java methods using OO COBOL. Dealing with Java objects as parameters and return values. |