You can use the COBOL container within the product to invoke
COBOL modules from a Java-based batch application.
About this task
The COBOL container provides a means of direct integration
of COBOL into Java™ batch processing.
Procedure
- Create
a COBOL call stub Java class
If you want to call
a COBOL module from a Java batch plain old Java object (POJO) in the
batch environment, you must first create a COBOL call stub Java class.
- Compile
a COBOL call stub Java class
You can compile
COBOL call stubs with the marshal.jar and ilcontainer.jar files
on the classpath. The marshal.jar and ilcontainer.jar files
are included with the COBOL call stub generator tool.
- Invoke a COBOL call stub Java class.
- Optional: Dynamically update a
COBOL module
You can dynamically update a COBOL
module without having to restart the application server.