OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J
TP1/Client/J supports three RPC modes: synchronous-response RPC, non-response type RPC, and chained RPC.
In this mode, a CUP sends an inquiry message to an SPP and receives a response message. The CUP waits for the processing results to be returned from the SPP before executing the next processing. If the same service is called more than once, the server process is scheduled each time.
The following figure shows the processing flow of a synchronous-response RPC.
Figure 2-3 Processing flow of a synchronous-response RPC
In this mode, a CUP sends an inquiry message to an SPP but does not receive a response message. Once it has sent an inquiry message to the SPP, the CUP immediately executes the next processing without waiting for the processing results from the SPP.
In the case of a non-response type RPC, you cannot receive an error in the event of a communication error or service error.
The following figure shows the processing flow of a non-response type RPC.
Figure 2-4 Processing flow of a non-response type RPC
In this mode, a CUP that uses the remote API facility sends an inquiry message to an SPP and receives a response message. The CUP waits for the processing results to be returned from the SPP before executing the next processing. The difference from a synchronous-response RPC is that a chained RPC can fix the server process. This means that when multiple inquiry messages are sent to the same service by means of chained RPCs, the server process is not rescheduled.
Chained RPCs require fewer user processes per transaction, thereby reducing the workload of transaction processing. A chained RPC used as a transaction functions in a single global transaction.
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.