1.1.4 CTG支持的网络协议
TCP/IP:配置最简单的方式。
SNA:必须和Communication Server搭配使用。
IPIC:CICS在3.2版本中引入了IPIC(IP Intercommunication)的概念,用于CICS region之间的互连,这种连接是基于TCP/IP协议的,具体的IPIC概念请参考其他相关章节。从CTG V7.1版本以后,加入了对IPIC的支持。
Namedpipe:命名管道,只支持Windows版本的CTG。
EXCI:只支持Z/OS版本的CTG。
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. |
1.4 应用程序开发
CTG提供多种编程接口,包括:
(1) J2EE Connector Architecture(JCA) JAVA API,即J2EE连接器架构JAVA应用程序接口,这是推荐的编程接口。
(2)基础的JAVA,C,COBOL,COM等编程接口。
以下文章点击率最高
Loading…