OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J
You call the openConnection method to establish a permanent connection. You specify the location of the target RAP-processing server in an argument of the openConnection method or in the dchost operand in the TP1/Client/J environment definition and the dcrapport operand. If there is a firewall between the CUP and the RAP-processing listener and server, you must specify the location of the firewall instead of the RAP-processing server.
If the openConnection method returns an exception, the permanent connection has not been established.
TP1/Client/J can establish only one permanent connection per CUP at a time. TP1/Client/J supports two permanent connection modes, depending on the management method:
You use the dcrapautoconnect operand in the TP1/Client/J environment definition or the setRpcextend method to specify the mode that is to be used (non-auto connect mode or auto connect mode).
TP1/Client/J uses a permanent connection for message transmission until the permanent connection is released by the closeConnection method. However, some errors will also cause the permanent connection to be released.
The following figure shows the procedure for establishing and releasing a permanent connection.
Figure 2-1 Establishing and releasing a permanent connection
All Rights Reserved. Copyright (C) 2006, 2009, Hitachi, Ltd.