Communicating with Java methods
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.