|
BEA eLink TCP for CICS 3.0 Information Center | |
|
HOME | SEARCH | CONTACT | PDF FILES | WHAT'S NEW |
||
|
TABLE OF CONTENTS | PREVIOUS TOPIC | NEXT TOPIC | INDEX |
||
To understand how the BEA eLink for Mainframe TCP for CICS (hereafter referenced as eLink TCP for CICS) product works, you should know how the product performs the following functions:
Each of these operations is described in the following subsections. Additionally, this document describes some programming considerations that may be useful when you develop or change programs that interoperate with BEA eLink TCP for CICS.
The Listener program is supplied by IBM and is part of the Sockets for CICS software product which must be purchased from IBM.
Note:
Before you can use BEA eLink TCP for CICS, you must install and configure both IBM TCP/IP and the Sockets for CICS product as outlined in the documentation that accompanies those products.
The Listener's job is to wait for connection requests at a particular network address and port of your choosing. When the Listener receives a connection request it invokes the appropriate CICS program automatically, based on the name supplied as part of the Listener's connection protocol buffer. For example, if the Listener receives a connection request from eLink TCP for TUXEDO running on a remote BEA TUXEDO node, it processes the connection and invokes the BEA eLink TCP Handler.
The eLink TCP Handler is invoked automatically by the Listener process. Once invoked, the Handler takes control of the socket connection and retains control until either the Handler is shut down or until there is a network problem that affects the socket connection. The Handler processes service requests up to the configured multiplex count. To process more service requests than the configured multiplex count, start more than one Handler. Due to the limitations of the IBM Sockets for CICS Listener, the maximum number of concurrent socket connections is 50, which means that up to 50 Handlers can be processing service requests at any one time.
The very first service request that is sent from the eLink TCP for TUXEDO gateway running on a remote BEA TUXEDO node causes the following to occur:
Starting the Listener Program
Running BEA eLink TCP for CICS
Initializing the Handler
For tpacall/TPNOREPLY requests, the remote program is invoked by a CICS START TRAN command and no data is returned to the original caller. In this case, a unique transaction must be defined for the service. Use the Inbound Service Information screen to enter this unique transaction name rather than using the transaction name that starts the Application Handler.
When the network connection is lost, the Handler process automatically shuts down. The next service request sent causes the Listener to automatically start a new Handler, if necessary.
Shutting down BEA TUXEDO on the remote gateway to which the Handler is attached will issue a CICS administration command to cancel the BEACIC00 program.
Use the eLink TCP for CICS Maintenance System described in "Configuring and Administering BEA eLink TCP for CICS" to disable the Handler. This will cause the Handler to clean up its tables and shut down gracefully. The next service request sent causes the Listener to automatically start a new Handler.
Use the supplied shutdown transaction BDWN. This will cause ALL Handlers to shut down gracefully. The name of the BDWN transaction may have been changed at your site during installation. Check with the person who installed BEA eLink TCP for CICS at your site.
The Requester is started automatically when the first service request for it is made by a CICS client program. At that point, the Requester establishes a connection with its remote endpoint and updates its control tables with run-time information for use by subsequent requests. If the connection with the remote endpoint is lost for any reason, the Requester attempts to re-establish the connection automatically. After a configured number of unsuccessful connection attempts, the Requester will mark itself disabled.
If the gateway receives additional service requests, they are accommodated as long as the maximum multiplex count for the existing connection is not exceeded. Also, additional connections are opened, as necessary, until the configured maximum connection count is reached or all requests are accommodated.
There are two ways to shut down the Requester:
Due to the way eLink TCP for TUXEDO on the remote BEA TUXEDO system translates and converts data, the CICS programmer does not need to do anything to prepare data that is destined for the remote BEA TUXEDO system.
The key to this high degree of transparency is the eLink TCP for TUXEDO configuration. It is through this mechanism that environmental differences, such as naming conventions and data formats, are concealed from programmers and programs.
Although all data is converted and translated automatically by the remote eLink TCP for TUXEDO gateway, the rules implemented are outlined in the following subsections to assist the CICS programmer in understanding how the data is manipulated. It is important for the CICS programmer to remember that this information is written from the point of view of the BEA TUXEDO environment.
When a client program on the remote BEA TUXEDO system sends data to (or receives data from) a service routine on a different model of computer, eLink TCP for TUXEDO automatically translates data as required. Translation involves changing the representation of intrinsic data types by changing attributes such as word length and byte order.
The following subsections describe the basic rules that eLink TCP for TUXEDO follows when it translates data and provide detailed information about how eLink TCP for TUXEDO handles string and numeric data.
The following are some commonly used BEA TUXEDO terms for buffer types:
How eLink TCP for TUXEDO Translates Data
BEA TUXEDO Terminology
STRING
CARRAY
VIEW
FML
The following table lists the data translation rules that BEA eLink TCP for TUXEDO follows:
Note: BEA TUXEDO provides a field type named dec_t that supports decimal values within VIEWs. BEA eLink TCP for TUXEDO translates these fields into machine independent representations of packed decimals. For example, dec_t(m,n) becomes S9(2*m-(n+1))V9(n) COMP-3. Therefore, a decimal field with a size of 8,5 corresponds to S9(10)V9(5) COMP-3.
The following table summarizes the translation rules between C and IBM/310 data types.
This subsection provides suggestions that will help you develop VIEW definitions for input and output buffers and records. It also explains how string data and numeric data are treated in the eLink TCP for TUXEDO environment.
When you create VIEW definitions for input and output records that are used by CICS applications, do not specify an extra position for the terminating NULL characters that are used in string fields.
For example, when a CICS application program expects 10 characters in an input record, specify 10 for that field, not 10 plus 1.
Note: Although eLink TCP for TUXEDO does not require strings to be NULL-terminated, it respects NULL termination. Therefore, when BEA eLink TCP for TUXEDO detects a NULL (zero) character within a string, it does not process any subsequent characters. To pass full 8-bit data that contains embedded NULL values, use a CARRAY type field or buffer.
The character set translations performed by eLink TCP for TUXEDO can be fully localized, in accordance with the X/Open XPG Portability Guides. ASCII and EBCDIC translations are loadable from message files. BEA eLink TCP for TUXEDO contains default behaviors which should meet the requirements of most English-language applications. However, you may find it necessary to customize tables. See the BEA eLink TCP for TUXEDO User Guide for complete instructions.
You can convert numeric data into different data types easily, provided that you have enough range in the intermediate and destination types to handle the maximum value you need to represent.
For example, you can convert an FML field of double into a packed decimal field on the remote target system by specifying an appropriate dec_t type VIEW element.
In addition, you can convert numeric values into strings (and the reverse). For example, while FML buffers do not directly support the dec_t type, you can place decimal values in string fields and map these to dec_t fields within VIEW definitions.