Generic CCI Classes

The generic CCI classes define the environment in which a J2EE component can send and receive data from an EIS. When you are developing a J2EE component you must implement the following steps:
  1. Use the ConnectionFactory object to create a Connection object.
  2. Use the Connection object to create an Interaction object.
  3. Use the Interaction object to execute commands on the EIS.
  4. Close 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 interaction = conn.createInteraction();
interaction.execute(<Input output data>);
interaction.close();
conn.close();