IBM Enterprise COBOL for z/OS backend applications in a JMP or JBP region
When you define an object-oriented (OO) COBOL class and compile it with the IBM Enterprise COBOL for z/OS compiler, the compiler generates a Java™ class definition with native methods and the object code to implement the native methods. After compiling the class, you can create an instance and invoke the methods of the compiled class from a Java program that runs in a JMP or JBP region.
For example, you can define an OO COBOL class with the appropriate DL/I call in COBOL to access an IMS database.
To make the implementation of this class available to a Java application running with IMS:
Procedure
- Compile the COBOL class with the IBM Enterprise COBOL for z/OS compiler to generate a Java source file, which contains the class definition, and an object module, which contains the implementation of the native methods.
- Compile the generated Java source file with the Java compiler to create the application class file.
- Link the object module into a dynamic link library (DLL) in the z/OS file system (zFS) file (.so).
- Update the application class path (ibm.jvm.application.class.path) for the JMP or JBP region to allow access to the Java class file.
- Update the library path for the JMP or JBP region to allow access to the DLL.