To achieve interlanguage interoperability with Java, you need to follow certain rules and guidelines for using services in the Java Native Interface (JNI), coding data types, and compiling COBOL programs.
You can invoke methods that are written in Java from COBOL programs, and you can invoke methods that are written in COBOL from Java programs. You need to code COBOL object-oriented language for basic Java object capabilities. For additional Java capabilities, you can call JNI services.
Because Java programs might be multithreaded and use asynchronous signals, compile COBOL programs with the THREAD option.
related tasks
Using national data (Unicode) in COBOL
Accessing JNI services
Sharing data with Java
Writing object-oriented programs
Compiling, linking, and running OO applications
Preparing COBOL programs for multithreading
related references
Java 2 Enterprise Edition Developer's Guide