Download
Abstract
The z/TPF Java™ stateful Hello World driver demonstrates how to utilize stateful services in a Java application.
Download Description
The z/TPF Java™ stateful Hello World driver demonstrates how to utilize stateful services in a Java application. To use stateful service requests, you must set the providerType element to StatefulProgram in the service descriptor. Two examples are included in this package:
-
An application that makes one or more requests to update a counter.
-
Make a stateful request from a Java application (HelloWorldSF.java) to a stateful z/TPF application service provider - QRSF.CPP
-
QRSF.CPP increments a global variable that holds the counter value and returns the value to the Java application (HelloWorldSF.java) by calling the tpf_srvcSendResponse() API.
Note: The Java application (HelloWorldSF.java) makes n requests in a single thread based on the returned counter value.
-
-
A single thread to intersperse the following items:
-
A stateful service request to open, read from, and hold a z/TPFDF subfile. The service returns the open z/TPFDF subfile to the Java client.
-
A stateful service request for z/TPFDF to add or replace the sample reservation and to unhold and close the z/TPFDF subfile.
-
Was this topic helpful?
Document Information
Modified date:
31 January 2019
UID
ibm10791777