Application programming on z/OS
Previous topic | Next topic | Contents | Glossary | Contact z/OS | PDF


Communicating with Java methods

Application programming on z/OS

A COBOL program can interoperate with JAVA.

To achieve inter-language interoperability with Java™, you must follow certain rules and guidelines for:
  • Using services in the Java Native Interface (JNI)
  • Coding data types
  • Compiling your 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. For basic Java object capabilities, you can use COBOL object-oriented language. For additional Java capabilities, you can call JNI services.

Because Java programs might be multi-threaded and use asynchronous signals, compile your COBOL programs with the THREAD option.





Copyright IBM Corporation 1990, 2010