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

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:
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.