type in callLink element

The type property of the callLink element of the linkage options part specifies the kind of call. Select one of the following values:
ejbCall
Indicates that the generated Java™ program or wrapper will implement the program call by using an EJB session bean and that the EJB session bean will access the COBOL or Java program identified in the pgmName property. The value ejbCall is applicable in either of two cases:
  • You are generating a Java wrapper for a COBOL or Java program, and the wrapper calls that program by way of an EJB session bean. In this case, the pgmName property refers to the program called from the wrapper, and your use of ejbCall causes generation of the EJB session bean.
  • You are generating a Java program that calls a generated COBOL or Java program by way of an EJB session bean. In this case, the pgmName property refers to the called program, and an EJB session bean is not generated.

In either case, if you are using an EJB session bean, you must generate a Java wrapper, if only to generate the EJB session bean.

The generated session bean must be deployed on an enterprise Java server, and one of the following statements must be true:
  • The name server used to locate the EJB session bean resides on the same system as the code calling that session bean; or
  • The providerURL property identifies where the name server resides.

If you wish to use an EJB session bean, you must generate the calling program or wrapper with a linkage options part in which the value of the type property for the called program is ejbCall. You cannot make the decision to use a session bean at deployment time. If you set the remoteBind property to RUNTIME, however, you can decide at deployment time how the EJB session bean accesses the generated program, although making this decision at generation time is more efficient.

localCall
Specifies that the call does not use EGL middleware. The called program in this case is in the same process as the caller.

localCall is the default value and is the only valid value for a z/OS® batch COBOL program.

remoteCall
Specifies that the call uses EGL middleware.

If the caller is Java code, communication is handled by the protocol specified in the remoteComType property.

If a fixed record with one or both of the properties lengthItem and numElementsItem is passed on a call, these statements apply:

Feedback