Want to use Gen Java EJB "batch" but see "Language Parameter is not C, or COBOL"
search cancel

Want to use Gen Java EJB "batch" but see "Language Parameter is not C, or COBOL"

book

Article ID: 204240

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Run Time Distributed

Issue/Introduction

Wanting to convert Gen 8.6 Batch processing applications on z/OS to be Gen EJB Webservices under a J2EE Application Server

  1. Tried to convert them as Batch targeting EJB and receive error:
    Language Parameter is not C, or COBOL

  2. Created Online No-Display (Batch Procedure Step) and packaged into Online Packaging.
    Tried the generation targeting EJB but continue to receive the same error.  

What are the procedures when generating/installing and targeting J2EE applications for Batch applications?

Environment

Gen 8.6 Enterprise Java Beans

Resolution

There is no real "batch" mode in the EJB world, specifically there is no analogy to JES which takes a queued job and begins executing it.  Gen only generates stateless session beans which need a client of some sort to invoke them.  An option is to write a "client driver" which invokes server Procedure Step (implemented as EJB) using the Gen proxy. The "client driver" would execute under control of some scheduling software. You could write a small "client driver" which invokes the server Procedure Step implemented as an EJB using the proxy.  If the client driver program is written in Java and uses the Java Proxy, then this program could run on the same application server as the EJBs. The latter can also be done in an asynchronous mode (Synchronous vs. Asynchronous Processing) to provide an unattended execution mechanism i.e. batch. 
Otherwise, write the program in C and use either the C or COM proxy.