Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


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.

Example: J2EE client written in COBOL


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)