01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CICS</strong> TG thread usage<br />

<strong>The</strong> <strong>Gateway</strong> daemon, used to receive network requests from remote Java<br />

clients, is itself a sophisticated multi-threaded Java application. It can handle<br />

multiple requests simultaneously and has a set of properties configured in the<br />

CTG.INI configuration file. Two pools of threads can be configured: the<br />

connection manager threads and the worker threads. For each connected client,<br />

one connection manager thread is used in the <strong>Gateway</strong> daemon, and is held until<br />

the client issues a disconnect using the Java<strong>Gateway</strong>.close() method, or is<br />

otherwise disconnected. In order for an ECI call to be performed via an allocated<br />

connection manager thread, a thread must be allocated from the worker thread<br />

pool for the duration of the ECI request. This relationship is summarized in<br />

Figure 7-6.<br />

Java client<br />

Java<strong>Gateway</strong>.open() Connect<br />

Java<strong>Gateway</strong>.flow()<br />

Java<strong>Gateway</strong>.close()<br />

ECI<br />

Disconnect<br />

Figure 7-6 <strong>CICS</strong> TG threading model<br />

<strong>Gateway</strong> daemon<br />

Connection<br />

Managers<br />

Workers<br />

Thus the connection manager threads limit the maximum number of connected<br />

Java clients, while the worker threads limit the number of concurrent ECI calls<br />

that can be issued by these attached clients. <strong>The</strong> initial and maximum numbers<br />

of these connection manager and worker threads are set in the CTG.INI file using<br />

the maxconnect and maxworker parameters. Requests from connection manager<br />

threads for worker threads can be queued internally, but will be timed out<br />

according to the workertimeout parameter.<br />

Wait<br />

ECI request<br />

ECI reply<br />

Chapter 7. TCP connections to the <strong>Gateway</strong> daemon on z/OS 155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!