callLink element

The callLink element of a linkage options part specifies the type of linkage used in a call. Each element includes these properties:

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)

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--

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:

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--

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:

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