IBM Support

z/TPF Java stateful Hello World driver

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:

  1. 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.

  2. 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.

[{"INLabel":"QRSF_Readme (txt)","INLang":"English","INSize":"14899","INURL":"https://public.dhe.ibm.com/software/htp/tpf/download/QRSF_Readme.txt"},{"INLabel":"QRSF_Readme (pdf)","INLang":"English","INSize":"39438","INURL":"https://public.dhe.ibm.com/software/htp/tpf/download/QRSF_Readme.pdf"}]
Off
[{"DNLabel":"QRSF Driver","DNDate":"31 Jan 2019","DNLang":"English","DNSize":"29479","DNPlat":{"label":"TPF","code":"PF029"},"DNURL":"https://transfer.boulder.ibm.com/tools/QRSF.tar.gz","DNURL_FTP":"","DDURL":null}]
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZL53","label":"TPF"},"Component":"z\/TPF","Platform":[{"code":"PF036","label":"z\/TPF"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
31 January 2019

UID

ibm10791777