Generic CCI Classes
The generic CCI classes define the environment in which a JEE application can send and receive data from an enterprise information system such as CICS®.
When you are developing a JEE component you must complete these
tasks:
- Use the ConnectionFactory object to create a connection object.
- Use the Connection object to create an interaction object.
- Use the Interaction object to run commands on the enterprise information system.
- Close the interaction and the connection.
The following example shows the JEE CCI interfaces being used to run a command on an enterprise information system:
ConnectionFactory cf = <Lookup from JNDI namespace>
Connection conn = cf.getConnection();
Interaction interaction = conn.createInteraction();
interaction.execute(<Input output data>);
interaction.close();
conn.close();