Using object-oriented COBOL and Java under IMS
You can mix object-oriented COBOL and Java™ in an application that runs in a Java dependent region.
For
example, you can:
- Call a COBOL method from a Java application. You can build the messaging portion of your application in Java and call COBOL methods to access IMS databases.
- Build a mixed COBOL and Java application
that starts with the
main
method of a COBOL class and that invokes Java routines.
You must run these applications in either a Java message processing (JMP) dependent region or a Java batch processing (JBP) dependent region. A program that reads from the message queue (regardless of the language) must run in a JMP dependent region.
related tasks
Defining a factory section
Writing object-oriented programs
Communicating with Java methods
Compiling, linking, and running OO applications
IMS Application Programming Guide
Defining a factory section
Writing object-oriented programs
Communicating with Java methods
Compiling, linking, and running OO applications
IMS Application Programming Guide