callLink element
The callLink element of a linkage options part specifies the type of linkage used in a call. Each element includes these properties:
- pgmName
- type
The value of the type property determines what additional properties are available, as shown in the next sections:
- If callLink type is localCall (the default)
- If callLink type is remoteCall
- If callLink type is ejbCall
If callLink type is localCall (the default)
Set property type to localCall when you are generating a Java program that calls a generated Java program that resides in the same thread. In this case, EGL middleware is not in use, and the following properties are meaningful for a callLink element in which pgmName identifies the called program--
- alias in callLink element
- package in callLink element
- pgmName in callLink element
- type in callLink element
You do not need to specify a callLink element for the call if the called program is in the same package as the caller and if either of these conditions is in effect:
- You do not specify an external name for the called program; or
- The external name for the called program is identical to the part name for that program.
The value of type cannot be localCall when you are generating a Java wrapper.
If callLink type is remoteCall
Set property type to remoteCall when you are generating a Java program or wrapper, and the Java code calls a program that runs in a different thread. The call is not by way of a generated EJB session bean. In this case, EGL middleware is in use, and the following properties are meaningful for a callLink element in which pgmName identifies the called program--
- alias in callLink element
- conversionTable in callLink element
- location in callLink element
- package in callLink element (used only if the generated code is calling a Java program that is stored in another package)
- pgmName in callLink element
- remoteBind in callLink element
- remoteComType in callLink element
- remotePgmType in callLink element
- serverID in callLink element
- type in callLink element
If callLink type is ejbCall
Set property type to ejbCall when a callLink element is required to handle either of the following situations:
- You are generating a Java wrapper and intend to call the related, generated program by way of a generated EJB session bean
- You are generating a Java program and intend to call another generated program by way of a generated EJB session bean
In this case, EGL middleware is in use, and the following properties are meaningful for a callLink element in which pgmName identifies the called program:
- alias in callLink element
- conversionTable in callLink element
- location in callLink element
- package in callLink element (used only if the generated Java code is calling a Java program that is stored in a package other than the package in which the EJB session bean resides)
- parmForm in callLink element (used only if the generated Java code is calling a program that runs on CICS)
- pgmName in callLink element
- providerURL in callLink element
- remoteBind in callLink element
- remoteComType in callLink element
- remotePgmType in callLink element
- serverID in callLink element
- type in callLink element
Related concepts
Linkage options part
Run-time configurations
Related tasks
Editing the callLink element of a linkage options part
Related reference
alias in callLink element
conversionTable in callLink element
linkType in callLink element
location in callLink element
package in callLink element
pgmName in callLink element
providerURL in callLink element
remoteBind in callLink element
remoteComType in callLink element
remotePgmType in callLink element
serverID in callLink element
type in callLink element