1.1.5 CTG的一些注意事項
1.CTG不支持從CICS端主動發出的訪問請求。這裡有個問題比較容易引起誤解,就是CTG發送請求到CICS,CICS的返回信息可以正常返回給CTG,這種不是CICS主動發起的請求。
2.CTG不會做數據的轉換,這個工作需要在應用程序或CICS中處理。
1.2 兩種模式
CTG的有兩種運行模式,這兩種模式是根據CTG以及客戶應用的拓撲結構來區分的。具體是哪種模式取決於客戶應用程序的部署位置,分別為本地模式和遠程模式。
1.本地模式(Local Mode,兩層結構)
在本地模式下,客戶應用程序與安裝CTG的server為同一台機器。在客戶應用程序對CICS發送請求的時候,不需要經過網關守護程序,而是直接發送到CICS端,因此,整個體系架構可以看作兩層的結構。這種模式下,根本無需啟動網關守護程序,對CICS的請求直接發送到客戶端守護程序。
在客戶應用程序中的ECI請求中仍需要指定URL參數為local,即ConnectionURL = “local://” 和PortNumber = 0。
2. 遠程模式(Remote Mode,三層結構)
在遠程模式下,客戶應用程序與安裝CTG的server為不同的機器,甚至不同的系統平台。在這種模式下,必須要配置並且啟動網關守護程序,網關守護程序介於客戶應用程序和CICS之間,整體構成三層的結構。
在客戶應用程序的ECI請求中需要指定URL參數為CTG所在機器的IP地址,即ConnectionURL = “XXX.XXX.XXX.XXX” 和PortNumber = XXX。
從另外一個角度對兩種模式的詮釋,見下圖:
圖像 1.3 CTG連接到CICS實例
1.配置CICS region
1. Set the SIT parameter TCPIP=YES.
2. Install the following:
– CICS-supplied transient data queue CIEO, in group DFHDCTG
– Transaction CIEP in group DFHIPECI
– Program DFHIEP in group DFHIPECI
3. Add a TCP/IP listener to CICS. Use the following CEDA command to define a TCPIPSERVICE in a group:
– CEDA DEF TCPIPSERVICE(service-name) GROUP(group-name)
4. Use the following command to install the TCPIPSERVICE definition:
– CEDA INS TCPIPSERVICE(service-name) GROUP(group-name)
| Attribute | Description |
| POrtnumber | The port on which the TCP/IP service listens. |
| PRotocol | The protocol of the service is ECI. |
| TRansaction | The transaction that CICS runs to handle incoming ECI requests. Set it to CIEP. |
| Backlog | The number of TCP/IP requests that are queued before TCP/IP starts to reject incoming requests. |
| Ipaddress | The IP address (in dotted decimal form) on which the TCPIPSERVICE listens. For configurations with more than one IP stack, specify ANY to make the TCPIPSERVICE listen on all addresses. |
| SOcketclose | Whether CICS should wait before closing the socket after issuing a receive for incoming data on that socket. NO is recommended for ECI connections, to ensure that the connection from the Client daemon always remains open. |
| ATtachsec | Specifies the level of attach-time security required for TCP/IP connections. |
2.配置CTG
3.測試連接
以下文章點擊率最高
Loading…