Common Client Interface

The CICS® Transaction Gateway provides resource adapters that implement the Common Client Interface (CCI) for interactions with CICS.

Common Client Interface

The CCI is a high level interface defined by the JCA and is available to J2EE developers using the External Call Interface (ECI) to communicate with programs running on a CICS server.

The CCI has two distinct class types:

In order to retrieve data from the CICS server, your J2EE application:

  1. Uses the ConnectionFactory object to create a Connection object.
  2. Uses the Connection object to create an Interaction object.
  3. Uses the Interaction object to execute commands on the EIS.
  4. Closes the Interaction and Connection.

The following example shows the use of the J2EE CCI interfaces to execute a command on an EIS:

ConnectionFactory cf = [Lookup from JNDI namespace]
Connection conn = cf.getConnection();
Interaction int = conn.createInteraction();
int.execute([Input output data]);
int.close();
conn.close();

Feedback