 |
» |
|
|
|
TP conversations can be locally initiated (initiated by the
TP on the HP 3000), or remotely initiated (initiated by
the TP on the remote system). This section describes the tasks that
the local application programmer, the node manager, and the remote
application programmer must perform in order to establish a locally
or remotely initiated conversation. Locally Initiated Conversations |  |
The following things must occur for a local TP to initiate
a conversation: An APPC session of the appropriate
session type must be established. A local end user must run the local TP. The local TP must send an allocate request over
the session assigned to it, to request a conversation with the remote
TP. The remote TP must be coded to receive the allocate
request from the local TP.
Note that the session must be established before the local
TP can use it to send the allocate request. This section describes
the tasks that the local application programmer and the node manager
must perform in order to establish a locally initiated conversation. To prepare for a locally initiated conversation, you must
do the following: Work with the programmer on the remote
system to design and code the TP. Ask the node manager for the name of an appropriately
configured session type, or ask the node manager to configure a
session type for the conversation. The session type must direct
data to the remote LU that serves the remote TP. Code the name of the session type into the SessionType parameter of the MCAllocate intrinsic.
To prepare for a locally initiated conversation, the node
manager must do the following: Configure an appropriate session type.
For information on configuring session types, see the APPC
Subsystem on MPE XL Node Manager's Guide or
the LU 6.2 API/V Node Manager's
Guide. Tell the application programmer the name of the
session type. The programmer must code the name of the session type
into the local TP. Activate a session of the appropriate session type,
or configure one for automatic activation at subsystem startup.
For more information on session activation, see the APPC
Subsystem on MPE XL Node Manager's Guide or
the APPC Subsystem on MPE V Node Manager's Guide.
Remotely Initiated Conversations on MPE V |  |
The following things must occur for a remote TP to initiate
a conversation on MPE V: An APPC session of the appropriate
session type must be established. The remote TP must issue an allocate request over
that session, specifying the name of the job that runs the local
TP with which it wants a conversation. The APPC subsystem must receive the allocate request
and stream the job that runs the local TP. The local TP must be coded to receive the allocate
request from the remote TP.
To prepare for remotely initiated conversations, you must
do the following: Work with the programmer on the remote
system to design and code the TP. The local TP must call the
MCGetAllocate intrinsic to receive an allocate request from
the remote TP. Ask the node manager for the name of an appropriately
configured session type, or ask the node manager to configure a
session type for the conversation. The session type must direct
data to the remote LU that serves the remote TP. Code the name of the session type into the SessionType parameter of the MCGetAllocate intrinsic. Tell the node manager the executable file name of
the TP. The executable file may reside in any group and account.
The node manager will create a job to run the TP. Ask the node manager for the name of the job file
that runs the local TP, and tell the programmer on the remote system
what the job file name is. The remote system must send the name
of the job file in the allocate request.
To prepare for a remotely initiated conversation on MPE V,
the node manager must do the following: Configure an appropriate session type.
See the LU 6.2 API/V Node Manager's Guide for
information on session type configuration. Tell the application programmer the name of the
session type. The programmer must code the name of the session type
into the local TP. Activate a session of the appropriate session type,
or configure one for automatic activation at subsystem startup. Create a job that runs the executable TP file. The
job file must be located in the APPC.SYS group and account. See
the LU 6.2 API/V Node Manager's
Guide for more information.
To prepare a remote program to initiate a conversation with
an HP TP on MPE V, the remote programmer must do the following: Design and code the program to initiate
a conversation with the corresponding TP on the HP 3000. Make sure that the remote TP passes the proper job
name in the allocate request. The HP application programmer must
tell the remote TP programmer which job name to use.
Remotely Initiated Conversations on MPE XL |  |
The following things must occur for a remote TP to initiate
a conversation with a local TP on MPE XL: An APPC session of the appropriate
session type must be established. The remote TP must issue an allocate request over
that session, specifying the name of the local TP with which it
wants a conversation. The APPC subsystem must receive the allocate request,
look up the local TP name in the APPC subsystem configuration file,
and determine from the configuration file what to do with the allocate request. If the local TP is configured
to conduct multiple remotely initiated conversations, and if it
is already active and in conversation, the APPC subsystem must queue
the allocate request until the local TP finishes the current conversation
and calls the MCGetAllocate intrinsic again. If the local TP is not currently running,
the APPC subsystem must stream the job that runs the local TP
. If the local TP is configured to conduct only one
remotely initiated conversation, the APPC subsystem must stream
the job that runs the local TP.
The local TP must be coded to receive the allocate
request from the remote TP.
 |  |  |  |  | NOTE: On MPE XL, any local TPs that will conduct remotely
initiated conversations must be configured through NMMGR/XL. See
the APPC Subsystem on MPE XL Node Manager's
Guide for information on TP configuration. |  |  |  |  |
To prepare for remotely initiated conversations on MPE XL,
you must do the following: Work with the programmer on the remote
system to design and code the TP. The local TP can be designed to
receive multiple allocate requests from the remote TP, or it can
be designed to receive only one allocate request. A TP designed
to receive multiple allocate requests must call the MCGetAllocate intrinsic multiple times. A TP designed to receive
only one allocate request must call the MCGetAllocate intrinsic only once. Together with the programmer on the remote system,
decide on a name for the TP. Make sure you and the other programmer
agree on the TP name; it must be coded into the local TP, and it
must be sent by the remote system in the allocate request. Tell
the node manager the TP name. The node manager must configure the
TP name in the APPC subsystem configuration file. Code the TP name into the LocalTPName parameter of the MCGetAllocate intrinsic and the LocalTPName parameter of the TPStarted intrinsic. Ask the node manager for the name of an appropriately
configured session type, or ask the node manager to configure a
session type for the conversation. The session type must direct
data to the remote LU that serves the remote TP. Code the name of the session type into the SessionType parameter of the MCGetAllocate intrinsic. Tell the node manager the executable file name of
the TP. The executable file may reside in any group and account.
The node manager will create a job to run the TP. Tell the node manager whether the TP calls the
MCGetAllocate intrinsic multiple times or only once. The node
manager must configure the TP to accept either single or queued
allocate requests. Decide whether you want to start the TP yourself
or have the APPC subsystem start the TP. While you are debugging
the TP, you might want to start it yourself. However, once the TP
is working, you should have the APPC subsystem start the TP when
it receives an allocate request from the remote TP. Tell the node
manager whether to configure the TP for manual or automatic startup. Tell the node manager how long the local TP should
wait for an allocate request from the remote TP before the
MCGetAllocate intrinsic times out. The node manager will configure
the time-out value.
To prepare for a remotely initiated conversation on MPE XL,
the node manager must do the following: Configure an appropriate session type. Tell the application programmer the name of the
session type. The programmer must code the name of the session type
into the local TP. Activate a session of the appropriate session type,
or configure one for automatic activation at subsystem startup. Create a job that runs the executable TP file. See
the APPC Subsystem on MPE XL Node Manager's
Guide for more information. Configure the TP name, the job name, the time-out
value, whether the TP accepts queued allocate requests, and whether
the programmer will start the TP manually. See the APPC
Subsystem on MPE XL Node Manager's Guide for
information on TP configuration.
To prepare a remote program to initiate a conversation with
an HP TP on MPE XL, the remote programmer must do the following: Design and code the program to initiate
a conversation with the corresponding TP on the HP 3000. Make sure that the remote TP passes the proper TP
name in the allocate request. The HP application programmer must
tell the remote TP programmer which TP name to use.
|