OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J

[Contents][Index][Back][Next]

3.2 How to use APIs

After creating a Java applet, application, or servlet using the class library provided by TP1/Client/J, you can manipulate TP1/Client/J, mainly by using five APIs.

  1. Preparing to use TP1/Client/J
  2. Creating an instance of the TP1Client class
  3. Initializing the RPC environment
  4. Connecting to TP1/Server's RAP-processing server (applicable if RPCs are issued using the remote API facility)
  5. Calling a remote service (RPC)
  6. Releasing the permanent connection with the RAP-processing listener or server (applicable if RPCs are issued using the remote API)
  7. Releasing the RPC environment

This section provides an overview and examples of the APIs in the order they are executed. For details about the classes, see 4. Classes Used with TP1/Client/J.

Note
Methods of the TP1Client class are not thread-safe. If you execute a method of an instance of the same TP1Client class from multiple threads, make sure that you apply a lock so that they will not be executed concurrently. If an attempt is made to execute a method of an instance of the same TP1Client class from multiple threads, the corresponding method may return an unexpected error.
Organization of this section
3.2.1 Execution order of APIs
3.2.2 Adjustment during TP1/Client/J execution
3.2.3 Collecting error information and adjusting facilities
3.2.4 Instructing trace output