Desenvolvendo aplicativos em lote do contêiner COBOL
É possível usar o contêiner COBOL no produto para chamar os módulos COBOL de um aplicativo em lote baseado em Java.
Antes de Iniciar
Sobre Esta Tarefa
Procedimento
- Crie uma classe Java de stub de chamada COBOL
Se você desejar chamar um módulo COBOL a partir de um Java batch plain old Java object (POJO) no ambiente de lote, você deverá, primeiro, criar uma classe Java de stub de chamada de COBOL.
- Compile
uma classe Java de stub de chamada COBOL
É possível compilar stubs da chamada COBOL com os arquivos marshal.jar e ilcontainer.jar no caminho de classe. Os arquivos marshal.jar e ilcontainer.jar são incluídos com a ferramenta do gerador de stub de chamada COBOL.
- Chame uma classe Java de stub de chamada COBOL.
Chame o stub de chamada Java a partir do aplicativo em lote. Leia o tópico de exemplo de uso da classe Java de stub de chamada COBOL para obter informações adicionais.
- Opcional: Atualize dinamicamente um módulo COBOL
É possível atualizar dinamicamente o módulo COBOL sem ter de reiniciar o servidor de aplicativos.
Subtópicos
Creating 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.Compiling COBOL call stub Java classes
COBOL call stub Java classes must be compiled with the marshal.jar and ilcontainer.jar files on the class path. The marshal.jar and ilcontainer.jar files are included with the COBOL call stub generator tool.Dynamically updating a COBOL module
You can dynamically update a COBOL module without having to restart the batch application server.COBOL call stub Java class usage example
The COBOL call stub Java class usage example shows how a batch application can invoke a COBOL procedure using the COBOL container.COBOL RETURNING, RETURN-CODE, getReturnValue, and getReturnCode parameters
If the COBOL module specifies a RETURNING parameter, it can be retrieved from the stub using the stub.getReturnValue() method. The method returns the Java object representation of the RETURNING parameter, which is the data bindings class generated by the COBOL call stub generator tool.COBOL container for batch troubleshooting
If you encounter problems when using COBOL container for batch troubleshooting, there are a number of options that are available to you.


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tgrid_cobol_container_developing
Nome do arquivo: tgrid_cobol_container_developing.html