You can use the object-oriented language support in Enterprise COBOL to write COBOL methods that an IMS Java program can call.
When you define a COBOL class and compile it with the Enterprise COBOL compiler, the compiler generates a Java class definition with native methods, and the object code that implements those native methods. You can then create an instance and invoke the methods of this class from an IMS Java program that runs in an IMS Java dependent region, just as you would use any other class.
For example, you can define a COBOL class that uses the appropriate DL/I calls to access an IMS database. To make the implementation of this class available to an IMS Java program, do the following steps:
When you write the initial routine of a mixed-language application in Java, you must implement a class that is derived from the IMS Java IMSApplication class.
A Java program cannot call procedural COBOL programs directly. To reuse existing COBOL IMS code, use one of the following techniques: